Modifier

Trait Modifier 

Source
pub trait Modifier<Dim: Dimension> {
    type Output<T: Generator<Dim>>: Generator<Dim>;

    // Required method
    fn modify<T: Generator<Dim>>(self, generator: T) -> Self::Output<T>;
}
Expand description

Post-processes existing generators.

Modifiers get access to the original generator, so they may call the underlying generator repeatedly to get schedules they would like.

Required Associated Types§

Source

type Output<T: Generator<Dim>>: Generator<Dim>

The new generator after applying the modifier

Required Methods§

Source

fn modify<T: Generator<Dim>>(self, generator: T) -> Self::Output<T>

Apply the modifier to a schedule generator

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§