Function cosmic::iced::window::icon::from_file

source ยท
pub fn from_file<P>(icon_path: P) -> Result<Icon, Error>
where P: AsRef<Path>,
Expand description

Creates an icon from an image file.

This will return an error in case the file is missing at run-time. You may prefer from_file_data instead.