Trait StepMode

Source
pub trait StepMode:
    Into<u16>
    + TryFrom<u16, Error = InvalidStepModeError>
    + Copy {
    type Iter: Iterator<Item = Self>;

    // Required method
    fn iter() -> Self::Iter;
}
Expand description

Implemented for all step mode enums

Required Associated Types§

Source

type Iter: Iterator<Item = Self>

The type of the iterator returned by StepMode::iter

Required Methods§

Source

fn iter() -> Self::Iter

Returns an iterator over all supported modes

Starts at the mode for configuring full steps and ends at the highest supported number of microsteps per step.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§