Struct
ControlCenterColor
pub struct ControlCenterColor {
pub red: u8,
pub green: u8,
pub blue: u8,
}Expand description
An RGB background color requested by an app for the collapsed Control Center. The Control Center chooses the foreground color; apps cannot control it.
Fields
red: u8green: u8blue: u8Implementations
impl ControlCenterColor
impl ControlCenterColor
pub const fn new(red: u8, green: u8, blue: u8) -> Self
Trait Implementations
impl Clone for ControlCenterColor
impl Clone for ControlCenterColor
fn clone(&self) -> ControlCenterColor
fn clone(&self) -> ControlCenterColor
Returns a duplicate of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for ControlCenterColor
impl Debug for ControlCenterColor
impl PartialEq for ControlCenterColor
impl PartialEq for ControlCenterColor
fn eq(&self, other: &ControlCenterColor) -> bool
fn eq(&self, other: &ControlCenterColor) -> bool
Tests for
self and other values to be equal, and is used by ==.1.0.0fn ne(&self, other: &Rhs) -> bool
fn ne(&self, other: &Rhs) -> bool
Tests for
!=. The default implementation is almost always sufficient,
and should not be overridden without very good reason.