pub trait StableFn<T> {
type Output;
// Required method
fn call_stable(&self, target: T) -> Self::Output;
}
Expand description
Stable Fn trait
§Description
Implement FnOnce
is still nighlty only feature. This trait is alternative to FnOnce
trait.