Trait libspecr::MonadicReturn
source · pub trait MonadicReturn {
type Inner;
// Required method
fn monadic_return(t: Self::Inner) -> Self;
}Expand description
Satisfied by types that can be constructed from some inner types.
Required Associated Types§
Required Methods§
sourcefn monadic_return(t: Self::Inner) -> Self
fn monadic_return(t: Self::Inner) -> Self
Wraps a value of Self::Inner into a Self.
Object Safety§
This trait is not object safe.