Struct ramp_maker::iter::Accelerations[][src]

pub struct Accelerations<'r, Profile: MotionProfile, Accel> {
    pub profile: &'r mut Profile,
    pub delay_prev: Option<Profile::Delay>,
    // some fields omitted
}

An iterator over acceleration values

Can be created by calling MotionProfile::accelerations.

Fields

profile: &'r mut Profile

The motion profile

delay_prev: Option<Profile::Delay>

The previous delay value

Implementations

impl<'r, Profile, Accel> Accelerations<'r, Profile, Accel> where
    Profile: MotionProfile
[src]

pub fn new(profile: &'r mut Profile) -> Self[src]

Create a new instance of Accelerations

You can call MotionProfile::accelerations instead.

Trait Implementations

impl<'r, Profile, Accel> Iterator for Accelerations<'r, Profile, Accel> where
    Profile: MotionProfile,
    Profile::Delay: Copy + One + Inv<Output = Profile::Velocity> + Add<Output = Profile::Delay> + Div<Output = Profile::Delay>,
    Profile::Velocity: Sub<Output = Profile::Velocity> + Div<Profile::Delay, Output = Accel>, 
[src]

type Item = Accel

The type of the elements being iterated over.

Auto Trait Implementations

impl<'r, Profile, Accel> Send for Accelerations<'r, Profile, Accel> where
    Accel: Send,
    Profile: Send,
    <Profile as MotionProfile>::Delay: Send

impl<'r, Profile, Accel> Sync for Accelerations<'r, Profile, Accel> where
    Accel: Sync,
    Profile: Sync,
    <Profile as MotionProfile>::Delay: Sync

impl<'r, Profile, Accel> Unpin for Accelerations<'r, Profile, Accel> where
    Accel: Unpin,
    <Profile as MotionProfile>::Delay: Unpin

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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[src]

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]