[−][src]Struct accel_stepper::StepAndDirection
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]
Step: OutputPin<Error = E>,
Direction: OutputPin<Error = E>,
type Error = E
The type of error that may be encountered when taking a step. Read more
fn step(&mut self, ctx: &StepContext) -> Result<(), Self::Error>
[src]
impl<Step: PartialEq, Direction: PartialEq> PartialEq<StepAndDirection<Step, Direction>> for StepAndDirection<Step, Direction>
[src]
fn eq(&self, other: &StepAndDirection<Step, Direction>) -> bool
[src]
fn ne(&self, other: &StepAndDirection<Step, Direction>) -> bool
[src]
impl<Step: Clone, Direction: Clone> Clone for StepAndDirection<Step, Direction>
[src]
fn clone(&self) -> 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]
fn default() -> 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,
Direction: Send,
Step: Send,
impl<Step, Direction> Unpin for StepAndDirection<Step, Direction> where
Direction: Unpin,
Step: Unpin,
Direction: Unpin,
Step: Unpin,
impl<Step, Direction> Sync for StepAndDirection<Step, Direction> where
Direction: Sync,
Step: Sync,
Direction: Sync,
Step: Sync,
impl<Step, Direction> RefUnwindSafe for StepAndDirection<Step, Direction> where
Direction: RefUnwindSafe,
Step: RefUnwindSafe,
Direction: RefUnwindSafe,
Step: RefUnwindSafe,
impl<Step, Direction> UnwindSafe for StepAndDirection<Step, Direction> where
Direction: UnwindSafe,
Step: UnwindSafe,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,