#[non_exhaustive]pub enum Association {
WholeImage,
Color(u16),
None,
ApplicationDefined(u16),
}Expand description
The color a channel is associated with, from a channel definition
(Asoc).
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.
WholeImage
The channel applies to the whole image (Asoc 0), as an opacity
channel usually does.
Color(u16)
The channel is color n of the color space, counting from 1 (for
sRGB, 1 is red, 2 green, 3 blue).
None
No association (Asoc 65535).
ApplicationDefined(u16)
The Asoc of an application-defined channel
(ChannelType::ApplicationDefined), as stored. The application
gives it its meaning; it is not a color of the color space.
Trait Implementations§
Source§impl Clone for Association
impl Clone for Association
impl Copy for Association
Source§impl Debug for Association
impl Debug for Association
impl Eq for Association
Source§impl PartialEq for Association
impl PartialEq for Association
impl StructuralPartialEq for Association
Auto Trait Implementations§
impl Forget for Association
impl Freeze for Association
impl Move for Association
impl RefUnwindSafe for Association
impl Send for Association
impl Sync for Association
impl Unpin for Association
impl UnsafeUnpin for Association
impl UnwindSafe for Association
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