pub trait WithErrorInfo: Sized {
// Required methods
fn push_hint<S: Into<String>>(self, hint: S) -> Self;
fn with_hints<S: Into<String>, I: IntoIterator<Item = S>>(
self,
hints: I,
) -> Self;
fn with_span(self, span: Option<Span>) -> Self;
fn with_span_fallback(self, span: Option<Span>) -> Self;
fn with_code(self, code: &'static str) -> Self;
fn with_source(self, source: ErrorSource) -> Self;
}
Required Methods§
fn push_hint<S: Into<String>>(self, hint: S) -> Self
fn with_hints<S: Into<String>, I: IntoIterator<Item = S>>( self, hints: I, ) -> Self
fn with_span(self, span: Option<Span>) -> Self
fn with_span_fallback(self, span: Option<Span>) -> Self
fn with_code(self, code: &'static str) -> Self
fn with_source(self, source: ErrorSource) -> Self
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.