pub fn byte_depth(&self) -> u8 {
        match self {
            Greyscale(_) => 1,
            RGB16(_) => 2,
            RGB24(_) => 3,
            RGBA(_) => 4
        }
    }
/// Returns the color's full byte depth.
Returns the color's full byte depth.
Returns the color ' s full byte depth .
pub fn byte_depth(&self) -> u8 {
        match self {
            Greyscale(_) => 1,
            RGB16(_) => 2,
            RGB24(_) => 3,
            RGBA(_) => 4
        }
    }
pub fn byte_depth ( & self ) -> u8 { match self { Greyscale ( _ ) => 1 , RGB16 ( _ ) => 2 , RGB24 ( _ ) => 3 , RGBA ( _ ) => 4 } }
Returns the color's full byte depth.
Returns the color ' s full byte depth .
&self
&self