pub fn channels(&self) -> usize {
        match self {
            LayerDepth::OneChannel => 1,
            LayerDepth::OneChannelAndAlpha => 2,
            LayerDepth::Color => 3,
            LayerDepth::Vector => 3,
            LayerDepth::ColorAndAlpha => 4,
            LayerDepth::VectorAndAlpha => 4,
            LayerDepth::FourChannels => 4,
            LayerDepth::FourChannelsAndAlpha => 5,
        }
    }
/// Returns the number of channels this layer type consists of.
Returns the number of channels this layer type consists of.
Returns the number of channels this layer type consists of .
pub fn channels(&self) -> usize {
        match self {
            LayerDepth::OneChannel => 1,
            LayerDepth::OneChannelAndAlpha => 2,
            LayerDepth::Color => 3,
            LayerDepth::Vector => 3,
            LayerDepth::ColorAndAlpha => 4,
            LayerDepth::VectorAndAlpha => 4,
            LayerDepth::FourChannels => 4,
            LayerDepth::FourChannelsAndAlpha => 5,
        }
    }
pub fn channels ( & self ) -> usize { match self { LayerDepth :: OneChannel => 1 , LayerDepth :: OneChannelAndAlpha => 2 , LayerDepth :: Color => 3 , LayerDepth :: Vector => 3 , LayerDepth :: ColorAndAlpha => 4 , LayerDepth :: VectorAndAlpha => 4 , LayerDepth :: FourChannels => 4 , LayerDepth :: FourChannelsAndAlpha => 5 , } }
Returns the number of channels this layer type consists of.
Returns the number of channels this layer type consists of .
&self