Enum psd::PsdChannelCompression
source · pub enum PsdChannelCompression {
RawData = 0,
RleCompressed = 1,
ZipWithoutPrediction = 2,
ZipWithPrediction = 3,
}
Expand description
Indicates how a channe’sl data is compressed
Variants§
RawData = 0
Not compressed
RleCompressed = 1
Compressed using PackBits RLE compression
ZipWithoutPrediction = 2
Currently unsupported
ZipWithPrediction = 3
Currently unsupported
Implementations§
source§impl PsdChannelCompression
impl PsdChannelCompression
sourcepub fn new(compression: u16) -> Option<PsdChannelCompression>
pub fn new(compression: u16) -> Option<PsdChannelCompression>
Create a new PsdLayerChannelCompression
Trait Implementations§
source§impl Debug for PsdChannelCompression
impl Debug for PsdChannelCompression
source§impl PartialEq for PsdChannelCompression
impl PartialEq for PsdChannelCompression
source§fn eq(&self, other: &PsdChannelCompression) -> bool
fn eq(&self, other: &PsdChannelCompression) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for PsdChannelCompression
impl StructuralEq for PsdChannelCompression
impl StructuralPartialEq for PsdChannelCompression
Auto Trait Implementations§
impl RefUnwindSafe for PsdChannelCompression
impl Send for PsdChannelCompression
impl Sync for PsdChannelCompression
impl Unpin for PsdChannelCompression
impl UnwindSafe for PsdChannelCompression
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more