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

Trait Implementations

impl<T, Args> FnOnce<Args> for ResolveFn<T>

type Output = T

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

impl<T> From<T> for ResolveFn<T>

fn from(v: T) -> Self