Trait simple_ref_fn::StaticRefFunction
source · pub trait StaticRefFunction<'a, D, T> {
type Output;
fn call(data: &'a D, arg: T) -> Self::Output;
fn bind(data: &'a D) -> RefFn<'a, T, Self::Output> { ... }
fn bind_sync(data: &'a D) -> RefSyncFn<'a, T, Self::Output>
where
D: Sync,
{ ... }
}Expand description
A trait for defining a static function will be type erased.