pub trait Extract<T> {
type Error;
// Required method
fn extract(&self) -> Result<T, Self::Error>;
// Provided method
fn extract_always(&self) -> T
where Self: Extract<T, Error = Infallible> { ... }
}Required Associated Types§
Required Methods§
Provided Methods§
fn extract_always(&self) -> Twhere
Self: Extract<T, Error = Infallible>,
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.