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