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

        Bitmap::builder()
            .source_bin(Some(bin))
            .build(&mut bitmap)?;

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

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