[][src]Struct eff::lazy::Lazy

pub struct Lazy<F>(_);

A lazy computation with no effects

Trait Implementations

impl<T, F> Effectful for Lazy<F> where
    F: FnOnce() -> T, 
[src]

type Output = T

The type of the final result

type Effect = !

The type of the effects this computation will produce

fn poll(self: Pin<&mut Self>, _cx: &Context) -> Poll<Self::Output, Self::Effect>[src]

Execute the computation

Panics

Panics if the task is polled again after completion

impl<F> Unpin for Lazy<F>[src]

Auto Trait Implementations

impl<F> Send for Lazy<F> where
    F: Send

impl<F> Sync for Lazy<F> where
    F: Sync

impl<F> UnwindSafe for Lazy<F> where
    F: UnwindSafe

impl<F> RefUnwindSafe for Lazy<F> where
    F: RefUnwindSafe

Blanket Implementations

impl<T> EmbedRest<T, Zero> for T[src]

impl<Head, Tail, N, Rest> EmbedRest<Either<Head, Tail>, Succ<N>> for Rest where
    Head: Effect,
    Rest: EmbedRest<Tail, N>, 
[src]

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

impl<T> From<T> for 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.

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

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

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