#[non_exhaustive]pub enum AlphaCompositionMode {
None,
SolidColor {
background_rgb: [u16; 3],
},
Checkerboard {
background_rgb: [u16; 3],
secondary_background_rgb: [u16; 3],
square_size: u16,
},
}Available on crate feature
v1_20 only.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.
Trait Implementations§
Source§impl Clone for AlphaCompositionMode
impl Clone for AlphaCompositionMode
Source§fn clone(&self) -> AlphaCompositionMode
fn clone(&self) -> AlphaCompositionMode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlphaCompositionMode
impl Debug for AlphaCompositionMode
Source§impl Default for AlphaCompositionMode
impl Default for AlphaCompositionMode
Source§fn default() -> AlphaCompositionMode
fn default() -> AlphaCompositionMode
Returns the “default value” for a type. Read more
Source§impl Hash for AlphaCompositionMode
impl Hash for AlphaCompositionMode
Source§impl PartialEq for AlphaCompositionMode
impl PartialEq for AlphaCompositionMode
impl Copy for AlphaCompositionMode
impl Eq for AlphaCompositionMode
impl StructuralPartialEq for AlphaCompositionMode
Auto Trait Implementations§
impl Freeze for AlphaCompositionMode
impl RefUnwindSafe for AlphaCompositionMode
impl Send for AlphaCompositionMode
impl Sync for AlphaCompositionMode
impl Unpin for AlphaCompositionMode
impl UnwindSafe for AlphaCompositionMode
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