Struct random_color::color_dictionary::ColorDictionary
source · pub struct ColorDictionary {
pub monochrome: ColorInformation,
pub red: ColorInformation,
pub orange: ColorInformation,
pub yellow: ColorInformation,
pub green: ColorInformation,
pub blue: ColorInformation,
pub purple: ColorInformation,
pub pink: ColorInformation,
}
Fields§
§monochrome: ColorInformation
§red: ColorInformation
§orange: ColorInformation
§yellow: ColorInformation
§green: ColorInformation
§blue: ColorInformation
§purple: ColorInformation
§pink: ColorInformation
Implementations§
source§impl ColorDictionary
impl ColorDictionary
pub fn new() -> ColorDictionary
pub fn get_saturation_range(self, hue: &i64) -> (i64, i64)
pub fn get_minimum_value(self, hue: &i64, saturation: &i64) -> i64
pub fn get_color(self, hue: &i64) -> ColorInformation
Trait Implementations§
source§impl Clone for ColorDictionary
impl Clone for ColorDictionary
source§fn clone(&self) -> ColorDictionary
fn clone(&self) -> ColorDictionary
Returns a copy 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 ColorDictionary
impl Debug for ColorDictionary
source§impl PartialEq for ColorDictionary
impl PartialEq for ColorDictionary
source§fn eq(&self, other: &ColorDictionary) -> bool
fn eq(&self, other: &ColorDictionary) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ColorDictionary
impl StructuralEq for ColorDictionary
impl StructuralPartialEq for ColorDictionary
Auto Trait Implementations§
impl RefUnwindSafe for ColorDictionary
impl Send for ColorDictionary
impl Sync for ColorDictionary
impl Unpin for ColorDictionary
impl UnwindSafe for ColorDictionary
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