Struct chargrid_event_routine::Loop[][src]

pub struct Loop<T, F, R> { /* fields omitted */ }

Implementations

impl<T, F, R> Loop<T, F, R> where
    F: FnMut() -> R,
    R: EventRoutine<Return = Option<T>>, 
[src]

pub fn new(f: F) -> Self[src]

Trait Implementations

impl<T, F, R> EventRoutine for Loop<T, F, R> where
    F: FnMut() -> R,
    R: EventRoutine<Return = Option<T>>, 
[src]

type Return = T

type Data = R::Data

type View = R::View

type Event = R::Event

Auto Trait Implementations

impl<T, F, R> RefUnwindSafe for Loop<T, F, R> where
    F: RefUnwindSafe,
    R: RefUnwindSafe,
    T: RefUnwindSafe

impl<T, F, R> Send for Loop<T, F, R> where
    F: Send,
    R: Send,
    T: Send

impl<T, F, R> Sync for Loop<T, F, R> where
    F: Sync,
    R: Sync,
    T: Sync

impl<T, F, R> Unpin for Loop<T, F, R> where
    F: Unpin,
    R: Unpin,
    T: Unpin

impl<T, F, R> UnwindSafe for Loop<T, F, R> where
    F: UnwindSafe,
    R: UnwindSafe,
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.