Trait Reportable

Source
pub trait Reportable {
    type FileId;

    // Required method
    fn emit<'f, W: WriteColor, F: Files<'f, FileId = Self::FileId>>(
        self,
        settings: &mut CodespanSettings<W>,
        source: &'f F,
    ) -> Result<(), Error>;
}

Required Associated Types§

Required Methods§

Source

fn emit<'f, W: WriteColor, F: Files<'f, FileId = Self::FileId>>( self, settings: &mut CodespanSettings<W>, source: &'f F, ) -> Result<(), Error>

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<E: Error> Reportable for FileRelative<&E>

Source§

type FileId = ()

Source§

fn emit<'f, W: WriteColor, F: Files<'f, FileId = Self::FileId>>( self, settings: &mut CodespanSettings<W>, source: &'f F, ) -> Result<(), Error>

Source§

impl<FileId> Reportable for Diagnostic<FileId>

Source§

type FileId = FileId

Source§

fn emit<'f, W: WriteColor, F: Files<'f, FileId = Self::FileId>>( self, settings: &mut CodespanSettings<W>, source: &'f F, ) -> Result<(), Error>

Source§

impl<R: Reportable> Reportable for Vec<R>

Source§

type FileId = <R as Reportable>::FileId

Source§

fn emit<'f, W: WriteColor, F: Files<'f, FileId = Self::FileId>>( self, settings: &mut CodespanSettings<W>, source: &'f F, ) -> Result<(), Error>

Implementors§