pub trait ResultExt: Sized {
// Required method
fn with_context<C>(self, context: impl FnOnce() -> C) -> Self
where C: Display;
// Provided method
fn context<C>(self, context: C) -> Self
where C: Display { ... }
}Required Methods§
fn with_context<C>(self, context: impl FnOnce() -> C) -> Selfwhere
C: Display,
Provided Methods§
Object Safety§
This trait is not object safe.