pub trait AcceptExt: Accept + Sized {
// Provided method
fn map_context<T, F: Fn(Self::Context) -> T>(
self,
f: F,
) -> AcceptMapContext<Self, F> { ... }
}Expand description
Extension trait for Accept
Provided Methods§
Sourcefn map_context<T, F: Fn(Self::Context) -> T>(
self,
f: F,
) -> AcceptMapContext<Self, F>
fn map_context<T, F: Fn(Self::Context) -> T>( self, f: F, ) -> AcceptMapContext<Self, F>
Maps Self::Context to a type T using F
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.