pub enum PsdChannelKind {
Red = 0,
Green = 1,
Blue = 2,
TransparencyMask = -1,
UserSuppliedLayerMask = -2,
RealUserSuppliedLayerMask = -3,
}Expand description
The different kinds of channels in a layer (red, green, blue, …).
Variants§
Red = 0
Green = 1
Blue = 2
TransparencyMask = -1
UserSuppliedLayerMask = -2
RealUserSuppliedLayerMask = -3
Implementations§
Source§impl PsdChannelKind
impl PsdChannelKind
Sourcepub fn new(channel_id: i16) -> Option<PsdChannelKind>
pub fn new(channel_id: i16) -> Option<PsdChannelKind>
Create a new PsdLayerChannel
Sourcepub fn rgba_offset(self) -> Result<usize, String>
pub fn rgba_offset(self) -> Result<usize, String>
R -> 0 G -> 1 B -> 2 A -> 3
Trait Implementations§
Source§impl Clone for PsdChannelKind
impl Clone for PsdChannelKind
Source§fn clone(&self) -> PsdChannelKind
fn clone(&self) -> PsdChannelKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PsdChannelKind
impl Debug for PsdChannelKind
Source§impl Hash for PsdChannelKind
impl Hash for PsdChannelKind
Source§impl Ord for PsdChannelKind
impl Ord for PsdChannelKind
Source§fn cmp(&self, other: &PsdChannelKind) -> Ordering
fn cmp(&self, other: &PsdChannelKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PsdChannelKind
impl PartialEq for PsdChannelKind
Source§impl PartialOrd for PsdChannelKind
impl PartialOrd for PsdChannelKind
impl Copy for PsdChannelKind
impl Eq for PsdChannelKind
impl StructuralPartialEq for PsdChannelKind
Auto Trait Implementations§
impl Freeze for PsdChannelKind
impl RefUnwindSafe for PsdChannelKind
impl Send for PsdChannelKind
impl Sync for PsdChannelKind
impl Unpin for PsdChannelKind
impl UnwindSafe for PsdChannelKind
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