pub trait StaticRefMutFunction<'a, D, T> {
    type Output;

    fn call_mut(data: &'a mut D, arg: T) -> Self::Output;

    fn bind(data: &'a mut D) -> RefFnMut<'a, T, Self::Output> { ... }
    fn bind_send(data: &'a mut D) -> RefSendFnMut<'a, T, Self::Output>
    where
        D: Send
, { ... } }
Expand description

A trait for defining a static function that will be type erased.

Required Associated Types§

Return type of the defined function.

Required Methods§

Function definition.

Provided Methods§

A helper function to create a RefFnMut object with the defined function.

A helper function to create a RefSendFnMut object with the defined function.

Implementors§