Trait prqlc::WithErrorInfo

source ·
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§

source

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

source

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

source

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

source

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

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl WithErrorInfo for Error

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

source§

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

Implementors§