pub trait Callable<T, U = ()> {
    fn call(&self, arg: T) -> U;
}
Expand description

A trait for callable structs with one and only one input argument and some return value.

Required Methods

Calls the struct with the given input argument.

Implementations on Foreign Types

Implementors