pub struct ColorConfig {
pub pixel_format: PixelFormat,
pub alpha_mode: AlphaMode,
pub alpha_invert: bool,
pub swap_red_blue: bool,
pub swap_bytes: bool,
}Expand description
Color Configuration
Fields§
§pixel_format: PixelFormatPixel format
alpha_mode: AlphaModeAlpha mode
alpha_invert: boolInvert alpha
swap_red_blue: boolSwap red and blue channels
swap_bytes: boolSwap output bytes
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ColorConfig
impl RefUnwindSafe for ColorConfig
impl Send for ColorConfig
impl Sync for ColorConfig
impl Unpin for ColorConfig
impl UnwindSafe for ColorConfig
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