pub fn as_slice(&self) -> &[u8] {
        match self {
            Greyscale(s) => &s[..],
            RGB16(s) => &s[..],
            RGB24(s) => &s[..],
            RGBA(s) => &s[..],
        }
    }
/// Extracts a slice containing the color data.
/// 
/// The length of the slice will be the same as the color's byte depth.
Extracts a slice containing the color data.
The length of the slice will be the same as the color's byte depth.
Extracts a slice containing the color data . The length of the slice will be the same as the color ' s byte depth .
pub fn as_slice(&self) -> &[u8] {
        match self {
            Greyscale(s) => &s[..],
            RGB16(s) => &s[..],
            RGB24(s) => &s[..],
            RGBA(s) => &s[..],
        }
    }
pub fn as_slice ( & self ) -> & [ u8 ] { match self { Greyscale ( s ) => & s [ .. ] , RGB16 ( s ) => & s [ .. ] , RGB24 ( s ) => & s [ .. ] , RGBA ( s ) => & s [ .. ] , } }
Extracts a slice containing the color data.
Extracts a slice containing the color data .
&self
&self