pub struct LegacyRgb {
pub red: LegacyLevel,
pub green: LegacyLevel,
pub blue: LegacyLevel,
}Fields§
§red: LegacyLevel§green: LegacyLevel§blue: LegacyLevelImplementations§
Trait Implementations§
Source§impl ApproxBrightness for LegacyRgb
impl ApproxBrightness for LegacyRgb
fn approx_brightness(&self) -> Result<Brightness, BrightnessError>
Source§impl MutableApproxBrightness for LegacyRgb
impl MutableApproxBrightness for LegacyRgb
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 LegacyRgb
impl Ord for LegacyRgb
Source§impl PartialOrd for LegacyRgb
impl PartialOrd for LegacyRgb
impl Copy for LegacyRgb
impl Eq for LegacyRgb
impl StructuralPartialEq for LegacyRgb
Auto Trait Implementations§
impl Freeze for LegacyRgb
impl RefUnwindSafe for LegacyRgb
impl Send for LegacyRgb
impl Sync for LegacyRgb
impl Unpin for LegacyRgb
impl UnsafeUnpin for LegacyRgb
impl UnwindSafe for LegacyRgb
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