[][src]Struct accel_stepper::StepAndDirection

pub struct StepAndDirection<Step, Direction> { /* fields omitted */ }

A Device which has step and direction pins.

Requires the hal feature.

Methods

impl<Step, Direction> StepAndDirection<Step, Direction>[src]

pub fn new(step: Step, direction: Direction) -> Self[src]

pub fn into_inner(self) -> (Step, Direction)[src]

Trait Implementations

impl<Step, Direction, E> Device for StepAndDirection<Step, Direction> where
    Step: OutputPin<Error = E>,
    Direction: OutputPin<Error = E>, 
[src]

type Error = E

The type of error that may be encountered when taking a step. Read more

impl<Step: PartialEq, Direction: PartialEq> PartialEq<StepAndDirection<Step, Direction>> for StepAndDirection<Step, Direction>[src]

impl<Step: Clone, Direction: Clone> Clone for StepAndDirection<Step, Direction>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<Step: Default, Direction: Default> Default for StepAndDirection<Step, Direction>[src]

impl<Step: Debug, Direction: Debug> Debug for StepAndDirection<Step, Direction>[src]

Auto Trait Implementations

impl<Step, Direction> Send for StepAndDirection<Step, Direction> where
    Direction: Send,
    Step: Send

impl<Step, Direction> Unpin for StepAndDirection<Step, Direction> where
    Direction: Unpin,
    Step: Unpin

impl<Step, Direction> Sync for StepAndDirection<Step, Direction> where
    Direction: Sync,
    Step: Sync

impl<Step, Direction> RefUnwindSafe for StepAndDirection<Step, Direction> where
    Direction: RefUnwindSafe,
    Step: RefUnwindSafe

impl<Step, Direction> UnwindSafe for StepAndDirection<Step, Direction> where
    Direction: UnwindSafe,
    Step: UnwindSafe

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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