#[non_exhaustive]pub enum CvdType {
Protan,
Deutan,
Tritan,
Achromat,
}Expand description
Type of color vision deficiency.
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.
Protan
Red-blind (L-cone deficiency).
Deutan
Green-blind (M-cone deficiency).
Tritan
Blue-blind (S-cone deficiency).
Achromat
Total color blindness (achromatopsia).
Trait Implementations§
impl Copy for CvdType
impl Eq for CvdType
impl StructuralPartialEq for CvdType
Auto Trait Implementations§
impl Freeze for CvdType
impl RefUnwindSafe for CvdType
impl Send for CvdType
impl Sync for CvdType
impl Unpin for CvdType
impl UnsafeUnpin for CvdType
impl UnwindSafe for CvdType
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