peroxide/traits/stable.rs
1//! Stable implementations for nightly-only features
2//!
3//! # Implemented List
4//!
5//! * `StableFn` : Make `FnOnce` to stable
6
7/// Stable Fn trait
8///
9/// # Description
10/// Implement `FnOnce` is still nighlty only feature. This trait is alternative to `FnOnce` trait.
11pub trait StableFn<T> {
12 type Output;
13 fn call_stable(&self, target: T) -> Self::Output;
14}