pub trait WithErrorInfo: Sized {
    // Required methods
    fn push_hint<S>(self, hint: S) -> Self
       where S: Into<String>;
    fn with_hints<S, I>(self, hints: I) -> Self
       where S: Into<String>,
             I: IntoIterator<Item = S>;
    fn with_span(self, span: Option<Span>) -> Self;
    fn with_code(self, code: &'static str) -> Self;
}

Required Methods§

fn push_hint<S>(self, hint: S) -> Self
where S: Into<String>,

fn with_hints<S, I>(self, hints: I) -> Self
where S: Into<String>, I: IntoIterator<Item = S>,

fn with_span(self, span: Option<Span>) -> Self

fn with_code(self, code: &'static str) -> Self

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

§

impl WithErrorInfo for Error

§

fn push_hint<S>(self, hint: S) -> Error
where S: Into<String>,

§

fn with_hints<S, I>(self, hints: I) -> Error
where S: Into<String>, I: IntoIterator<Item = S>,

§

fn with_span(self, span: Option<Span>) -> Error

§

fn with_code(self, code: &'static str) -> Error

§

impl<T, E> WithErrorInfo for Result<T, E>
where E: WithErrorInfo,

§

fn with_hints<S, I>(self, hints: I) -> Result<T, E>
where S: Into<String>, I: IntoIterator<Item = S>,

§

fn with_span(self, span: Option<Span>) -> Result<T, E>

§

fn with_code(self, code: &'static str) -> Result<T, E>

§

fn push_hint<S>(self, hint: S) -> Result<T, E>
where S: Into<String>,

Implementors§

§

impl WithErrorInfo for prql_compiler::Error