[][src]Struct lark_error::ErrorReported

pub struct ErrorReported(pub Span<FileName>);

Unit type used in Result to indicate a value derived from other value where an error was already reported. The span is "some span" from one of the errors.

Methods

impl ErrorReported[src]

pub fn at_span(s: Span<FileName>) -> Self[src]

pub fn at_diagnostic(s: &Diagnostic) -> Self[src]

pub fn at_diagnostics(s: &[Diagnostic]) -> Self[src]

pub fn span(&self) -> Span<FileName>[src]

Trait Implementations

impl PartialEq<ErrorReported> for ErrorReported[src]

impl PartialOrd<ErrorReported> for ErrorReported[src]

impl Eq for ErrorReported[src]

impl Copy for ErrorReported[src]

impl Ord for ErrorReported[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Clone for ErrorReported[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for ErrorReported[src]

impl Hash for ErrorReported[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl DebugWith for ErrorReported[src]

fn debug_with<Cx>(&'me self, cx: &'me Cx) -> DebugCxPair<'me, &'me Self, Cx> where
    Cx: ?Sized
[src]

fn into_debug_with<Cx>(self, cx: &'me Cx) -> DebugCxPair<'me, Self, Cx> where
    Cx: ?Sized
[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

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

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<Q, K> Equivalent for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<Cx, T> FmtWithSpecialized for T where
    Cx: ?Sized,
    T: Debug + ?Sized
[src]

impl<T> SpanFile for T where
    T: Copy + Eq + Ord + Debug
[src]

impl<T> Erased for T