iced::window::icon

Function from_file

source
pub fn from_file<P: AsRef<Path>>(icon_path: P) -> Result<Icon, Error>
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.