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

Trait Implementations

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

The returned type after the call operator is used.

🔬 This is a nightly-only experimental API. (fn_traits)

This is called when the call operator is used.

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

Performs the conversion.