[−][src]Struct mini_haskell::error::Diagnostic
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,