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
🔬 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]
fn from(v: T) -> Self
Performs the conversion.