#[non_exhaustive]pub enum ChannelType {
Color,
Opacity,
PremultipliedOpacity,
ApplicationDefined,
Unspecified,
Other(u16),
}Expand description
A channel’s type, from a channel definition (Typ).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Color
A color channel (Typ 0).
Opacity
An opacity channel (Typ 1).
PremultipliedOpacity
A premultiplied opacity channel (Typ 2).
ApplicationDefined
An application-defined channel (Typ 3, ISO/IEC 15444-15 D.6.3) in a
JPH file. Its Association is Association::ApplicationDefined.
In a file that is not JPH, Typ 3 is reserved and reported as
ChannelType::Other.
Unspecified
The type is not specified (Typ 65535).
Other(u16)
A reserved Typ value, reported as is.
Trait Implementations§
Source§impl Clone for ChannelType
impl Clone for ChannelType
impl Copy for ChannelType
Source§impl Debug for ChannelType
impl Debug for ChannelType
impl Eq for ChannelType
Source§impl PartialEq for ChannelType
impl PartialEq for ChannelType
impl StructuralPartialEq for ChannelType
Auto Trait Implementations§
impl Forget for ChannelType
impl Freeze for ChannelType
impl Move for ChannelType
impl RefUnwindSafe for ChannelType
impl Send for ChannelType
impl Sync for ChannelType
impl Unpin for ChannelType
impl UnsafeUnpin 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