Trait event_iterator::IntoEventIterator

source ·
pub trait IntoEventIterator {
    type Event<'me>
       where Self: 'me;
    type IntoEventIter: for<'me> EventIterator<Event<'me> = Self::Event<'me>> + 'static;

    // Required method
    fn into_event_iter(self) -> Self::IntoEventIter;
}
Expand description

Trait for converting something into a 'static event iterator

This is automatically implemented for all 'static types that implement EventIterator.

Required Associated Types§

source

type Event<'me> where Self: 'me

The type of the event yielded by the event iterator

source

type IntoEventIter: for<'me> EventIterator<Event<'me> = Self::Event<'me>> + 'static

The type of the resulting event iterator

Required Methods§

source

fn into_event_iter(self) -> Self::IntoEventIter

Convert self into an event iterator.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<I> IntoEventIterator for I
where I: EventIterator + 'static,

§

type Event<'me> = <I as EventIterator>::Event<'me> where Self: 'me

§

type IntoEventIter = I