pub fn compression(&self, channel: PsdChannelKind) -> Result<PsdChannelCompression, Error> {
        match self.channels.get(&channel) {
            Some(channel) => match channel {
                ChannelBytes::RawData(_) => Ok(PsdChannelCompression::RawData),
                ChannelBytes::RleCompressed(_) => Ok(PsdChannelCompression::RleCompressed),
            },
            None => Err(PsdChannelError::ChannelNotFound { channel }.into()),
        }
    }
/// Get the compression level for one of this layer's channels
Get the compression level for one of this layer's channels
Get the compression level for one of this layer ' s channels
pub fn compression(&self, channel: PsdChannelKind) -> Result<PsdChannelCompression, Error> {
        match self.channels.get(&channel) {
            Some(channel) => match channel {
                ChannelBytes::RawData(_) => Ok(PsdChannelCompression::RawData),
                ChannelBytes::RleCompressed(_) => Ok(PsdChannelCompression::RleCompressed),
            },
            None => Err(PsdChannelError::ChannelNotFound { channel }.into()),
        }
    }
pub fn compression ( & self , channel : PsdChannelKind ) -> Result < PsdChannelCompression , Error > { match self . channels . get ( & channel ) { Some ( channel ) => match channel { ChannelBytes :: RawData ( _ ) => Ok ( PsdChannelCompression :: RawData ) , ChannelBytes :: RleCompressed ( _ ) => Ok ( PsdChannelCompression :: RleCompressed ) , } , None => Err ( PsdChannelError :: ChannelNotFound { channel } . into ( ) ) , } }
Get the compression level for one of this layer's channels
Get the compression level for one of this layer ' s channels
&self
channel
PsdChannelKind
&self
channel
PsdChannelKind