pub trait Context1: Sized {
type Output;
// Required method
fn with_context1<C, F>(self, f: F) -> Self::Output
where F: FnOnce() -> C,
C: Display + Send + Sync + 'static;
// Provided method
fn context1<C>(self, s: C) -> Self::Output
where C: Display + Send + Sync + 'static { ... }
}Required Associated Types§
Required Methods§
fn with_context1<C, F>(self, f: F) -> Self::Output
Provided Methods§
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.