#[non_exhaustive]pub enum LightnessModel {
Linear,
Digital,
}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.
Linear
Lightness is calculated in linear color space, then transferred.
Digital
Lightness is calculated in transferred (‘electrical’) values.
Trait Implementations§
Source§impl Clone for LightnessModel
impl Clone for LightnessModel
Source§fn clone(&self) -> LightnessModel
fn clone(&self) -> LightnessModel
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 LightnessModel
impl Debug for LightnessModel
Source§impl Hash for LightnessModel
impl Hash for LightnessModel
Source§impl PartialEq for LightnessModel
impl PartialEq for LightnessModel
impl Copy for LightnessModel
impl Eq for LightnessModel
impl StructuralPartialEq for LightnessModel
Auto Trait Implementations§
impl Freeze for LightnessModel
impl RefUnwindSafe for LightnessModel
impl Send for LightnessModel
impl Sync for LightnessModel
impl Unpin for LightnessModel
impl UnwindSafe for LightnessModel
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