Enum magick_rust::bindings::ChannelType
source · #[repr(u32)]pub enum ChannelType {
Show 15 variants
Undefined = 0,
Red = 1,
Green = 2,
Blue = 4,
Black = 8,
Alpha = 16,
Index = 32,
ReadMask = 64,
WriteMask = 128,
Meta = 256,
CompositeMask = 512,
CompositeChannels = 31,
AllChannels = 134_217_727,
GrayChannels = 1_024,
SyncChannels = 131_072,
}
Variants§
Undefined = 0
Red = 1
Green = 2
Blue = 4
Black = 8
Alpha = 16
Index = 32
ReadMask = 64
WriteMask = 128
Meta = 256
CompositeMask = 512
CompositeChannels = 31
AllChannels = 134_217_727
GrayChannels = 1_024
SyncChannels = 131_072
Implementations§
source§impl ChannelType
impl ChannelType
pub const Gray: ChannelType = ChannelType::Red
source§impl ChannelType
impl ChannelType
pub const Cyan: ChannelType = ChannelType::Red
source§impl ChannelType
impl ChannelType
pub const L: ChannelType = ChannelType::Red
source§impl ChannelType
impl ChannelType
pub const Magenta: ChannelType = ChannelType::Green
source§impl ChannelType
impl ChannelType
pub const a: ChannelType = ChannelType::Green
source§impl ChannelType
impl ChannelType
pub const b: ChannelType = ChannelType::Green
source§impl ChannelType
impl ChannelType
pub const Yellow: ChannelType = ChannelType::Blue
source§impl ChannelType
impl ChannelType
pub const Opacity: ChannelType = ChannelType::Alpha
source§impl ChannelType
impl ChannelType
pub const TrueAlpha: ChannelType = ChannelType::Meta
source§impl ChannelType
impl ChannelType
pub const RGBChannels: ChannelType = ChannelType::CompositeMask
source§impl ChannelType
impl ChannelType
pub const DefaultChannels: ChannelType = ChannelType::AllChannels
Trait Implementations§
source§impl Clone for ChannelType
impl Clone for ChannelType
source§fn clone(&self) -> ChannelType
fn clone(&self) -> ChannelType
Returns a copy 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 ChannelType
impl Debug for ChannelType
source§impl Hash for ChannelType
impl Hash for ChannelType
source§impl PartialEq for ChannelType
impl PartialEq for ChannelType
source§fn eq(&self, other: &ChannelType) -> bool
fn eq(&self, other: &ChannelType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChannelType
impl Eq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations§
impl Freeze for ChannelType
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnwindSafe for ChannelType
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)