pub fn from_file(path: &str, strict: bool) -> Result<Icon, NwgError> {
        let mut icon = Icon::default();

        Icon::builder()
            .source_file(Some(path))
            .strict(strict)
            .build(&mut icon)?;

        Ok(icon)
    }
/**
        Single line helper function over the icon builder api.

        Use a file resource.
    */
Single line helper function over the icon builder api.
Use a file resource.
Single line helper function over the icon builder api . Use a file resource .
pub fn from_file(path: &str, strict: bool) -> Result<Icon, NwgError> {
        let mut icon = Icon::default();
        Icon::builder()
            .source_file(Some(path))
            .strict(strict)
            .build(&mut icon)?;
        Ok(icon)
    }
pub fn from_file ( path : & str , strict : bool ) -> Result < Icon , NwgError > { let mut icon = Icon :: default ( ) ; Icon :: builder ( ) . source_file ( Some ( path ) ) . strict ( strict ) . build ( & mut icon ) ? ; Ok ( icon ) }
Single line helper function over the icon builder api.
Single line helper function over the icon builder api .
path
&str
strict
bool