[][src]Enum loa::Diagnostic

pub enum Diagnostic {
    SyntaxError(SpanString),
    UndefinedTypeReference(SpanString),
    UndefinedReference(SpanString),
    UndefinedBehaviour(SpanTypeString),
    UndefinedImport(SpanString),
    UnexportedImport(SpanString),
    UnassignableType {
        span: Span,
        assignability: TypeAssignability,
    },
    DuplicatedDeclaration(SpanStringusize),
    InvalidInherit {
        span: Span,
        super_type: Type,
        sub_type: Type,
        violations: Vec<InheritanceViolation>,
    },
    InvalidLiteralType(SpanType),
    OutOfBounds(SpanTypeString),
    TooPreciseFloat(SpanTypeBigFraction),
    WrongNumberOfTypeArguments(SpanStringusizeusize),
    InvalidAccessToPrivateMethod(SpanStringString),
    InvalidTypeParameterReferenceVarianceUsage(SpanString, &'static str, &'static str),
    IncompleteInitializer(SpanStringVec<String>),
    UndefinedInitializedVariable(SpanStringString),
}

Variants

SyntaxError(SpanString)
UndefinedTypeReference(SpanString)
UndefinedReference(SpanString)
UndefinedBehaviour(SpanTypeString)
UndefinedImport(SpanString)
UnexportedImport(SpanString)
UnassignableType

Fields of UnassignableType

span: Spanassignability: TypeAssignability
DuplicatedDeclaration(SpanStringusize)
InvalidInherit

Fields of InvalidInherit

span: Spansuper_type: Typesub_type: Typeviolations: Vec<InheritanceViolation>
InvalidLiteralType(SpanType)
OutOfBounds(SpanTypeString)
TooPreciseFloat(SpanTypeBigFraction)
WrongNumberOfTypeArguments(SpanStringusizeusize)
InvalidAccessToPrivateMethod(SpanStringString)
InvalidTypeParameterReferenceVarianceUsage(SpanString, &'static str, &'static str)
IncompleteInitializer(SpanStringVec<String>)
UndefinedInitializedVariable(SpanStringString)

Methods

impl Diagnostic[src]

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

pub fn level(&self) -> DiagnosticLevel[src]

pub fn code(&self) -> usize[src]

pub fn failed(diagnostics: &Vec<Diagnostic>) -> bool[src]

Trait Implementations

impl Clone for Diagnostic[src]

impl Debug for Diagnostic[src]

impl Display for Diagnostic[src]

impl<'_derivative_strum> From<&'_derivative_strum Diagnostic> for &'static str[src]

impl From<Diagnostic> for &'static str[src]

Auto Trait Implementations

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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.