Trait spork::CallableOnce
source · pub trait CallableOnce<A, R> {
// Required method
fn call(this: Self, args: A) -> R;
}
Expand description
Marker trait for types implementing FnOnce
.
This trait is automatically implemented for functions and closures.
This trait exists because the special syntax for the FnOnce
trait (aka FnOnce(x, y, z) -> w
) makes it difficault to do the generic bounds needed by this crate.