Struct tinkerforge::color_bricklet::Color
source · pub struct Color {
pub r: u16,
pub g: u16,
pub b: u16,
pub c: u16,
}
Fields§
§r: u16
§g: u16
§b: u16
§c: u16
Trait Implementations§
source§impl FromByteSlice for Color
impl FromByteSlice for Color
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]) -> Color
fn from_le_byte_slice(bytes: &[u8]) -> Color
Deserialize the implementing type from a byte slice.
source§impl PartialEq for Color
impl PartialEq for Color
impl Copy for Color
impl Eq for Color
impl StructuralPartialEq for Color
Auto Trait Implementations§
impl RefUnwindSafe for Color
impl Send for Color
impl Sync for Color
impl Unpin for Color
impl UnwindSafe for Color
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