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.