Struct logitech_led_sdk::ColorPercent
source · pub struct ColorPercent {
pub r: u8,
pub g: u8,
pub b: u8,
}
Expand description
A percent-based RGB Color.
Values are from 0-100 NOT 0-255.
Fields§
§r: u8
Red
Valued from 0-100
g: u8
Green
Valued from 0-100
b: u8
Blue
Valued from 0-100
Implementations§
source§impl ColorPercent
impl ColorPercent
Trait Implementations§
source§impl Clone for ColorPercent
impl Clone for ColorPercent
source§fn clone(&self) -> ColorPercent
fn clone(&self) -> ColorPercent
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ColorPercent
impl Debug for ColorPercent
source§impl Hash for ColorPercent
impl Hash for ColorPercent
source§impl PartialEq for ColorPercent
impl PartialEq for ColorPercent
source§fn eq(&self, other: &ColorPercent) -> bool
fn eq(&self, other: &ColorPercent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ColorPercent
impl Eq for ColorPercent
impl StructuralEq for ColorPercent
impl StructuralPartialEq for ColorPercent
Auto Trait Implementations§
impl RefUnwindSafe for ColorPercent
impl Send for ColorPercent
impl Sync for ColorPercent
impl Unpin for ColorPercent
impl UnwindSafe for ColorPercent
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