[][src]Struct mini_haskell::error::Diagnostic

pub struct Diagnostic { /* fields omitted */ }

A diagnostic, with a source location, and an optional source range.

Implementations

impl Diagnostic[src]

pub fn new(location: Location, message: DiagnosticMessage) -> Diagnostic[src]

Create a new diagnostics.

pub fn within_range(self, range: Range) -> Self[src]

Add a source range to the report.

pub fn within(self, begin: Location, end: Location) -> Self[src]

Add a source range from a [begin, end) pair to the report.

pub fn report(self, engine: &mut DiagnosticsEngine)[src]

Report to the diagnostics engine.

Trait Implementations

impl Debug for Diagnostic[src]

Auto Trait Implementations

impl !RefUnwindSafe for Diagnostic

impl Send for Diagnostic

impl Sync for Diagnostic

impl Unpin for Diagnostic

impl !UnwindSafe for Diagnostic

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> 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.