pub trait IntoClosure<M, Output> {
// Required method
fn into_closure(self) -> Output;
}Expand description
Trait for converting a closure into a Closure wrapper.
This trait is used instead of From to allow blanket implementations
for all closure types without conflicting with other From impls.
Output is a generic parameter (not associated type) to allow implementing
the trait multiple times for the same type with different outputs.