Struct tinkerforge::color_v2_bricklet::ColorEvent
source · pub struct ColorEvent {
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 Clone for ColorEvent
impl Clone for ColorEvent
source§fn clone(&self) -> ColorEvent
fn clone(&self) -> ColorEvent
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 ColorEvent
impl Debug for ColorEvent
source§impl Default for ColorEvent
impl Default for ColorEvent
source§fn default() -> ColorEvent
fn default() -> ColorEvent
Returns the “default value” for a type. Read more
source§impl FromByteSlice for ColorEvent
impl FromByteSlice for ColorEvent
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]) -> ColorEvent
fn from_le_byte_slice(bytes: &[u8]) -> ColorEvent
Deserialize the implementing type from a byte slice.
source§impl Hash for ColorEvent
impl Hash for ColorEvent
source§impl PartialEq for ColorEvent
impl PartialEq for ColorEvent
source§fn eq(&self, other: &ColorEvent) -> bool
fn eq(&self, other: &ColorEvent) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ColorEvent
impl Eq for ColorEvent
impl StructuralPartialEq for ColorEvent
Auto Trait Implementations§
impl RefUnwindSafe for ColorEvent
impl Send for ColorEvent
impl Sync for ColorEvent
impl Unpin for ColorEvent
impl UnwindSafe for ColorEvent
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