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.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.