pub struct Drivetrain<M: DrivetrainModel, T: Tracking> {
pub model: M,
pub tracking: T,
}Expand description
A mobile robot drivetrain capable of measuring data about itself.
Fields§
§model: MMotor collection.
tracking: TTracking system.
Implementations§
Source§impl<M: DrivetrainModel, T: Tracking> Drivetrain<M, T>
impl<M: DrivetrainModel, T: Tracking> Drivetrain<M, T>
Trait Implementations§
Source§impl<M: Clone + DrivetrainModel, T: Clone + Tracking> Clone for Drivetrain<M, T>
impl<M: Clone + DrivetrainModel, T: Clone + Tracking> Clone for Drivetrain<M, T>
Source§fn clone(&self) -> Drivetrain<M, T>
fn clone(&self) -> Drivetrain<M, T>
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Debug + DrivetrainModel, T: Debug + Tracking> Debug for Drivetrain<M, T>
impl<M: Debug + DrivetrainModel, T: Debug + Tracking> Debug for Drivetrain<M, T>
Source§impl<M: Default + DrivetrainModel, T: Default + Tracking> Default for Drivetrain<M, T>
impl<M: Default + DrivetrainModel, T: Default + Tracking> Default for Drivetrain<M, T>
Source§fn default() -> Drivetrain<M, T>
fn default() -> Drivetrain<M, T>
Returns the “default value” for a type. Read more
Source§impl<M: Hash + DrivetrainModel, T: Hash + Tracking> Hash for Drivetrain<M, T>
impl<M: Hash + DrivetrainModel, T: Hash + Tracking> Hash for Drivetrain<M, T>
Source§impl<M: PartialEq + DrivetrainModel, T: PartialEq + Tracking> PartialEq for Drivetrain<M, T>
impl<M: PartialEq + DrivetrainModel, T: PartialEq + Tracking> PartialEq for Drivetrain<M, T>
impl<M: Copy + DrivetrainModel, T: Copy + Tracking> Copy for Drivetrain<M, T>
impl<M: Eq + DrivetrainModel, T: Eq + Tracking> Eq for Drivetrain<M, T>
impl<M: DrivetrainModel, T: Tracking> StructuralPartialEq for Drivetrain<M, T>
Auto Trait Implementations§
impl<M, T> Freeze for Drivetrain<M, T>where
M: Freeze,
T: Freeze,
impl<M, T> RefUnwindSafe for Drivetrain<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for Drivetrain<M, T>where
M: Send,
T: Send,
impl<M, T> Sync for Drivetrain<M, T>where
M: Sync,
T: Sync,
impl<M, T> Unpin for Drivetrain<M, T>where
M: Unpin,
T: Unpin,
impl<M, T> UnsafeUnpin for Drivetrain<M, T>where
M: UnsafeUnpin,
T: UnsafeUnpin,
impl<M, T> UnwindSafe for Drivetrain<M, T>where
M: UnwindSafe,
T: UnwindSafe,
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)