Trait MietteExt

Source
pub trait MietteExt {
    // Required methods
    fn with_help(
        self,
        message: impl Into<Cow<'static, str>>,
    ) -> Box<dyn Diagnostic + Send + Sync>;
    fn with_labels(
        self,
        labels: impl Iterator<Item = LabeledSpan>,
    ) -> Box<dyn Diagnostic + Send + Sync>;
}

Required Methods§

Source

fn with_help( self, message: impl Into<Cow<'static, str>>, ) -> Box<dyn Diagnostic + Send + Sync>

Source

fn with_labels( self, labels: impl Iterator<Item = LabeledSpan>, ) -> Box<dyn Diagnostic + Send + Sync>

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.

Implementations on Foreign Types§

Source§

impl MietteExt for Box<dyn Diagnostic + Send + Sync>

Source§

fn with_help( self, message: impl Into<Cow<'static, str>>, ) -> Box<dyn Diagnostic + Send + Sync>

Source§

fn with_labels( self, labels: impl Iterator<Item = LabeledSpan>, ) -> Box<dyn Diagnostic + Send + Sync>

Source§

impl MietteExt for Error

Source§

fn with_help( self, message: impl Into<Cow<'static, str>>, ) -> Box<dyn Diagnostic + Send + Sync>

Source§

fn with_labels( self, labels: impl Iterator<Item = LabeledSpan>, ) -> Box<dyn Diagnostic + Send + Sync>

Implementors§