Struct tinkerforge::rgb_led_v2_bricklet::RgbValue
source · pub struct RgbValue {
pub r: u8,
pub g: u8,
pub b: u8,
}
Fields§
§r: u8
§g: u8
§b: u8
Trait Implementations§
source§impl FromByteSlice for RgbValue
impl FromByteSlice for RgbValue
source§fn bytes_expected() -> usize
fn bytes_expected() -> usize
Returns how many bytes are expected to deserialize a instance of the implementing type. Currently this method is only used for strings.
source§fn from_le_byte_slice(bytes: &[u8]) -> RgbValue
fn from_le_byte_slice(bytes: &[u8]) -> RgbValue
Deserialize the implementing type from a byte slice.
source§impl PartialEq for RgbValue
impl PartialEq for RgbValue
impl Copy for RgbValue
impl Eq for RgbValue
impl StructuralPartialEq for RgbValue
Auto Trait Implementations§
impl RefUnwindSafe for RgbValue
impl Send for RgbValue
impl Sync for RgbValue
impl Unpin for RgbValue
impl UnwindSafe for RgbValue
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