[][src]Struct rslint_errors::Emitter

pub struct Emitter<'files> { /* fields omitted */ }

The emitter is responsible for emitting diagnostics to a given output.

Implementations

impl<'files> Emitter<'files>[src]

pub fn new(files: &'files dyn Files) -> Self[src]

Creates a new Emitter.

impl<'_> Emitter<'_>[src]

pub fn emit_stderr(&mut self, d: &Diagnostic, color: bool) -> Result<(), Error>[src]

Render and emit the diagnostic to stderr

pub fn emit_stdout(&mut self, d: &Diagnostic, color: bool) -> Result<(), Error>[src]

Render and emit the diagnostic to stdout

pub fn emit_with_writer(
    &mut self,
    d: &Diagnostic,
    writer: &mut dyn WriteColor
) -> Result<(), Error>
[src]

Auto Trait Implementations

impl<'files> !RefUnwindSafe for Emitter<'files>

impl<'files> !Send for Emitter<'files>

impl<'files> !Sync for Emitter<'files>

impl<'files> Unpin for Emitter<'files>

impl<'files> !UnwindSafe for Emitter<'files>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erasable for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.