pub fn from_bin(bin: &[u8]) -> Result<Icon, NwgError> {
        let mut icon = Icon::default();

        Icon::builder()
            .source_bin(Some(bin))
            .build(&mut icon)?;

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

        Use a binary resource.
    */
Single line helper function over the icon builder api.
Use a binary resource.
Single line helper function over the icon builder api . Use a binary resource .
pub fn from_bin(bin: &[u8]) -> Result<Icon, NwgError> {
        let mut icon = Icon::default();
        Icon::builder()
            .source_bin(Some(bin))
            .build(&mut icon)?;
        Ok(icon)
    }
pub fn from_bin ( bin : & [ u8 ] ) -> Result < Icon , NwgError > { let mut icon = Icon :: default ( ) ; Icon :: builder ( ) . source_bin ( Some ( bin ) ) . build ( & mut icon ) ? ; Ok ( icon ) }
Single line helper function over the icon builder api.
Single line helper function over the icon builder api .
bin
&[u8]