Struct lighthouse_client::Color
source · [−]Expand description
An RGB color.
Fields
red: u8green: u8blue: u8Implementations
Trait Implementations
sourceimpl Distribution<Color> for Standard
impl Distribution<Color> for Standard
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Color
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> Color
Generate a random value of
T, using rng as the source of randomness.sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where
R: Rng,
Create an iterator that generates random values of
T, using rng as
the source of randomness. Read moreimpl Copy for Color
impl Eq for Color
impl StructuralEq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more