pub struct Drivetrain<M, T> {
pub motors: M,
pub tracking: T,
}Expand description
A mobile robot drivetrain capable of measuring data about itself.
Fields§
§motors: MMotor collection.
tracking: TTracking system.
Implementations§
Source§impl<M, T> Drivetrain<M, T>
impl<M, T> Drivetrain<M, T>
Trait Implementations§
Source§impl<M: Clone, T: Clone> Clone for Drivetrain<M, T>
impl<M: Clone, T: Clone> 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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<M: Default, T: Default> Default for Drivetrain<M, T>
impl<M: Default, T: Default> 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
impl<M: Copy, T: Copy> Copy for Drivetrain<M, T>
impl<M: Eq, T: Eq> Eq for Drivetrain<M, T>
impl<M, T> StructuralPartialEq for Drivetrain<M, T>
Auto Trait Implementations§
impl<M, T> Freeze for Drivetrain<M, T>
impl<M, T> RefUnwindSafe for Drivetrain<M, T>where
M: RefUnwindSafe,
T: RefUnwindSafe,
impl<M, T> Send for Drivetrain<M, T>
impl<M, T> Sync for Drivetrain<M, T>
impl<M, T> Unpin for Drivetrain<M, T>
impl<M, T> UnwindSafe for Drivetrain<M, T>where
M: UnwindSafe,
T: UnwindSafe,
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