pub trait Pure: Higher {
// Required method
fn pure(x: Self::Param) -> Self;
// Provided method
fn unit() -> Self
where Self: Higher<Param = ()> + Sized { ... }
}
Expand description
Typeclass for lifting values into a context.
Required Methods§
Provided Methods§
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.