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