pub struct LedColor {
pub red: u8,
pub blue: u8,
pub green: u8,
}
Expand description
A basic RGB struct for describing an LED color.
It’s recommended to reuse these if it makes sense with your use-case, as nothing in the crate ever requires more than a reference (no mutable references, or pass ownership with a value ever required).
Fields§
§red: u8
§blue: u8
§green: u8
Trait Implementations§
impl Copy for LedColor
impl StructuralPartialEq for LedColor
Auto Trait Implementations§
impl Freeze for LedColor
impl RefUnwindSafe for LedColor
impl Send for LedColor
impl Sync for LedColor
impl Unpin for LedColor
impl UnwindSafe for LedColor
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