pub fn from_png_bytes(display: &Display, bytes: &[u8]) -> TextureResult{
        image::load_from_memory_with_format(bytes, image::PNG)
            .map_err(From::from)
            .and_then(|img| Texture::new(display, img.to_rgba()))
    }
/// Creates a `Texture` from a PNG-encoded byte slice
Creates a `Texture` from a PNG-encoded byte slice
Creates a ` Texture ` from a PNG - encoded byte slice
pub fn from_png_bytes(display: &Display, bytes: &[u8]) -> TextureResult{
        image::load_from_memory_with_format(bytes, image::PNG)
            .map_err(From::from)
            .and_then(|img| Texture::new(display, img.to_rgba()))
    }
pub fn from_png_bytes ( display : & Display , bytes : & [ u8 ] ) -> TextureResult { image :: load_from_memory_with_format ( bytes , image :: PNG ) . map_err ( From :: from ) . and_then ( | img | Texture :: new ( display , img . to_rgba ( ) ) ) }
Creates a `Texture` from a PNG-encoded byte slice
Creates a ` Texture ` from a PNG - encoded byte slice
display
&Display
bytes
&[u8]
display
&Display
bytes
&[u8]