#[non_exhaustive]pub enum SHTValueError {
PrimaryShadeZero,
PrimaryTintOne,
SecondaryShadeZero,
SecondaryTintOne,
DirectionEqualsPrimary,
ValueOutOfBounds,
BlendZero,
BlendOne,
}Expand description
Represents possible errors when constructing an SHT from component
values.
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.
PrimaryShadeZero
primary set, while shade set
to 0.
PrimaryTintOne
primary set, while tint set to
0.
SecondaryShadeZero
secondary set, while shade set
to 0.
SecondaryTintOne
secondary set, while tint set
to 1.
DirectionEqualsPrimary
direction is equal to primary.
ValueOutOfBounds
A ratio is not in 0..1 range
(inclusive).
BlendZero
blend set to 0.
BlendOne
blend set to 1.
Trait Implementations§
Source§impl Debug for SHTValueError
impl Debug for SHTValueError
Source§impl PartialEq for SHTValueError
impl PartialEq for SHTValueError
impl Eq for SHTValueError
impl StructuralPartialEq for SHTValueError
Auto Trait Implementations§
impl Freeze for SHTValueError
impl RefUnwindSafe for SHTValueError
impl Send for SHTValueError
impl Sync for SHTValueError
impl Unpin for SHTValueError
impl UnwindSafe for SHTValueError
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