Struct roccat_vulcan_api_rs::Saturation [−][src]
pub struct Saturation(_);
Expand description
Color saturation, gauranties that the value is between 0 and 1.
Used by ColorRgb::new_hsv
.
Examlpe
use roccat_vulcan_api_rs::Saturation; assert_eq!(Saturation::new(0.5_f64).unwrap().value(), 0.5_f64); assert_eq!(Saturation::new(1.5_f64), None);
Implementations
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Saturation
impl Send for Saturation
impl Sync for Saturation
impl Unpin for Saturation
impl UnwindSafe for Saturation
Blanket Implementations
Mutably borrows from an owned value. Read more