Enum effect_monad::ResolveFn [] [src]

pub enum ResolveFn<T> {
    Const(T),
}

Helper enum for acting as a resolve function.

Ideally, we would use a closure instead of this type, but this type exists as a workaround alternative to avoid using boxed closures

Variants

Const(T)

Trait Implementations

impl<T, Args> FnOnce<Args> for ResolveFn<T>
[src]

type Output = T

The returned type after the call operator is used.

extern "rust-call" fn call_once(self, _: Args) -> Self::Output

Unstable (fn_traits)

This is called when the call operator is used.