pub trait Split<Args, Ret> {
type Trampoline;
// Required method
fn trampoline() -> Self::Trampoline;
}
Expand description
A helper trait used by split_closure()
to get a trampoline function
which will invoke the closure.
This trait is automatically implemented for any FnMut()
callable, you
shouldn’t implement it yourself.
Required Associated Types§
type Trampoline
Required Methods§
fn trampoline() -> Self::Trampoline
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.