Trait roopes::prelude::Emitter

source ·
pub trait Emitter<O> {
    // Required method
    fn emit(&self) -> O;
}
Expand description

Emitters are capable of continuously returning an owned object to the caller. Iterator is a subset of this interface in that Emitter<Option<T>> is equivalent to Iterator<T>.

Required Methods§

source

fn emit(&self) -> O

Produces a value.

Implementors§

source§

impl<L, O> Emitter<O> for Lambda<L, O>where L: Delegate<O>,

source§

impl<R> Emitter<Option<R>> for Iterator<R>