pub trait IntoOverload<Marker>: Sized {
type Target: Overload + 'static;
// Required method
fn into_overload(self) -> Self::Target;
}
Expand description
Helper trait for overloading a function. Features a special marker for managing possible different implementations on the same type.
Required Associated Types§
Required Methods§
Sourcefn into_overload(self) -> Self::Target
fn into_overload(self) -> Self::Target
Turn this into a function overload.
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.