#[repr(C)]pub struct LedColor {
pub id: u32,
pub r: u8,
pub g: u8,
pub b: u8,
pub a: u8,
}Expand description
An LED color value that is layout-compatible with ffi::CorsairLedColor.
The #[repr(C)] layout means a &[LedColor] slice can be passed directly
to FFI functions via pointer cast — no per-element copying required.
Fields§
§id: u32LED locally-unique identifier.
r: u8§g: u8§b: u8§a: u8Implementations§
Trait Implementations§
impl Copy for LedColor
impl Eq 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