pub trait FnFactory<In, Out>{
type Fn;
// Required methods
fn generate(&mut self, input: In) -> Self::Fn;
fn boxed(self) -> BoxFnFactory<In, Out>
where Self: 'static + Send;
fn chain<GOut, G>(self, other: G) -> BoxFnFactory<In, GOut>
where Self: 'static + Send + Sized,
G: 'static + Send + Clone + FnFactory<Out, GOut>,
GOut: 'static + Send,
G::Fn: 'static + Send + FnOnce() -> GOut;
}Required Associated Types§
Required Methods§
fn generate(&mut self, input: In) -> Self::Fn
fn boxed(self) -> BoxFnFactory<In, Out>where
Self: 'static + Send,
fn chain<GOut, G>(self, other: G) -> BoxFnFactory<In, GOut>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".