Struct drv8825::util::ref_mut::RefMut[][src]

pub struct RefMut<'r, T>(pub &'r mut T);

Generic wrapper around a mutable reference

This is used as a means of implementing traits that are already implemented for T for &mut T too. While this is redundant for the traits from this crate, we couldn’t do this for embedded_hal::timer::CountDown without a crate-local type.

The purpose of this is to make the future types more flexible, making it possible to move types into them, or just provide mutable references.

Trait Implementations

impl<'r, T> CountDown for RefMut<'r, T> where
    T: CountDown
[src]

type Error = <T as CountDown>::Error

An enumeration of CountDown errors. Read more

type Time = <T as CountDown>::Time

The unit of time used by this timer

impl<'r, T> MotionControl for RefMut<'r, T> where
    T: MotionControl
[src]

type Velocity = <T as MotionControl>::Velocity

The type used by the driver to represent velocity

type Error = <T as MotionControl>::Error

The type error that can happen when using this trait

impl<'r, T> SetDirection for RefMut<'r, T> where
    T: SetDirection
[src]

type Dir = <T as SetDirection>::Dir

The type of the DIR pin

type Error = <T as SetDirection>::Error

The error that can occur while using this trait

impl<'r, T> SetStepMode for RefMut<'r, T> where
    T: SetStepMode
[src]

type Error = <T as SetStepMode>::Error

The error that can occur while using this trait

type StepMode = <T as SetStepMode>::StepMode

The type that defines the microstepping mode Read more

impl<'r, T> Step for RefMut<'r, T> where
    T: Step
[src]

type Step = <T as Step>::Step

The type of the STEP pin

type Error = <T as Step>::Error

The error that can occur while using this trait

Auto Trait Implementations

impl<'r, T> Send for RefMut<'r, T> where
    T: Send

impl<'r, T> Sync for RefMut<'r, T> where
    T: Sync

impl<'r, T> Unpin for RefMut<'r, T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Az for T[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> CheckedAs for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<Src, Dst> LosslessTryInto<Dst> for Src where
    Dst: LosslessTryFrom<Src>, 
[src]

impl<Src, Dst> LossyInto<Dst> for Src where
    Dst: LossyFrom<Src>, 
[src]

impl<T> OverflowingAs for T[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> SaturatingAs for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> UnwrappedAs for T[src]

impl<T> WrappingAs for T[src]