#[non_exhaustive]pub enum MappingKind {
Direct,
Palette {
column: u8,
},
Reserved {
mtyp: u8,
pcol: u8,
},
}Expand description
How a mapped channel is made from its component (MTYP).
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.
Direct
MTYP 0: the component’s samples as coded.
Palette
MTYP 1: the component’s samples are indexes into this palette
column (PCOL).
Reserved
An MTYP other than 0 and 1, which the standard reserves. Only
reported under raw_channels,
which does not check the mapping; a normal decode refuses such a file.
Trait Implementations§
Source§impl Clone for MappingKind
impl Clone for MappingKind
Source§impl Debug for MappingKind
impl Debug for MappingKind
impl Eq for MappingKind
Source§impl PartialEq for MappingKind
impl PartialEq for MappingKind
impl StructuralPartialEq for MappingKind
Auto Trait Implementations§
impl Forget for MappingKind
impl Freeze for MappingKind
impl Move for MappingKind
impl RefUnwindSafe for MappingKind
impl Send for MappingKind
impl Sync for MappingKind
impl Unpin for MappingKind
impl UnsafeUnpin for MappingKind
impl UnwindSafe for MappingKind
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