Skip to main content

AnimIterExt

Trait AnimIterExt 

Source
pub trait AnimIterExt: Sized + Iterator {
    // Provided methods
    fn into_stack(self) -> AnimStack
       where Self::Item: IntoAnimNode + 'static { ... }
    fn into_seq(self) -> AnimSequence
       where Self::Item: Unplaced + 'static { ... }
    fn into_lagged(self, lag_ratio: f64) -> AnimLagged
       where Self::Item: Unplaced + 'static { ... }
}
Expand description

Collect iterators of animations into containers.

Provided Methods§

Source

fn into_stack(self) -> AnimStack
where Self::Item: IntoAnimNode + 'static,

Collect the animations into an AnimStack (all at the same origin).

Source

fn into_seq(self) -> AnimSequence
where Self::Item: Unplaced + 'static,

Collect the animations into an AnimSequence (played in order).

Source

fn into_lagged(self, lag_ratio: f64) -> AnimLagged
where Self::Item: Unplaced + 'static,

Collect the animations into an AnimLagged with the given stagger ratio.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<I> AnimIterExt for I
where I: Iterator,