pub struct Rgb {
pub red: u8,
pub green: u8,
pub blue: u8,
}Fields§
§red: u8§green: u8§blue: u8Implementations§
Trait Implementations§
Source§impl ApproxBrightness for Rgb
impl ApproxBrightness for Rgb
fn approx_brightness(&self) -> Result<Brightness, BrightnessError>
Source§impl MutableApproxBrightness for Rgb
impl MutableApproxBrightness for Rgb
fn set_approx_brightness( &mut self, brightness: Brightness, ) -> Result<(), BrightnessError>
fn with_approx_brightness(
self,
brightness: Brightness,
) -> Result<Self, BrightnessError>where
Self: Sized,
fn set_adapt_to<A>(&mut self, other: A) -> Result<(), BrightnessError>where
A: ApproxBrightness,
fn with_adapt_to<A>(self, other: A) -> Result<Self, BrightnessError>where
Self: Sized,
A: ApproxBrightness,
fn set_contrast_to<A>(&mut self, other: A) -> Result<(), BrightnessError>where
A: ApproxBrightness,
fn with_contrast_to<A>(self, other: A) -> Result<Self, BrightnessError>where
Self: Sized,
A: ApproxBrightness,
Source§impl Ord for Rgb
impl Ord for Rgb
Source§impl PartialOrd for Rgb
impl PartialOrd for Rgb
impl Copy for Rgb
impl Eq for Rgb
impl StructuralPartialEq for Rgb
Auto Trait Implementations§
impl Freeze for Rgb
impl RefUnwindSafe for Rgb
impl Send for Rgb
impl Sync for Rgb
impl Unpin for Rgb
impl UnsafeUnpin for Rgb
impl UnwindSafe for Rgb
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