pub struct MappingOptions {
pub failure: u8,
pub transparent: Option<u8>,
}Expand description
Configuration of palette mapping.
Fields§
§failure: u8If pixel is not in the palette, use this index.
transparent: Option<u8>If pixel is transparent (alpha != 255), use this index. If None
transparent pixels are treated as failures.
Auto Trait Implementations§
impl Freeze for MappingOptions
impl RefUnwindSafe for MappingOptions
impl Send for MappingOptions
impl Sync for MappingOptions
impl Unpin for MappingOptions
impl UnsafeUnpin for MappingOptions
impl UnwindSafe for MappingOptions
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