Skip to main content

Projection

Trait Projection 

Source
pub trait Projection<A>: Send + Sync {
    type Out: Send + Sync + 'static;

    const MAX_EMITS: usize;

    // Required method
    fn project<Sink>(&self, input: &A, sink: &mut Sink)
       where Sink: ProjectionSink<Self::Out>;
}

Required Associated Constants§

Required Associated Types§

Source

type Out: Send + Sync + 'static

Required Methods§

Source

fn project<Sink>(&self, input: &A, sink: &mut Sink)
where Sink: ProjectionSink<Self::Out>,

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§