[]Enum gluon::Error

pub enum Error {
    Parse(InFile<Error>),
    Typecheck(InFile<HelpError<Symbol>>),
    IO(IoError),
    VM(Error),
    Macro(InFile<Error>),
    Other(Error),
    Multiple(Errors<Error>),
}

Error type wrapping all possible errors that can be generated from gluon

Variants

Parse(InFile<Error>)

Error found when parsing gluon code

Typecheck(InFile<HelpError<Symbol>>)

Error found when typechecking gluon code

Error found when performing an IO action such as loading a file

VM(Error)

Error found when executing code in the virtual machine

Macro(InFile<Error>)

Error found when expanding macros

Other(Error)
Multiple(Errors<Error>)

Multiple errors where found

Methods

impl Error[src]

pub fn merge(self, other: Self) -> Self[src]

impl Error[src]

pub fn emit_string(&self, code_map: &CodeMap) -> Result<String>[src]

pub fn emit<W: ?Sized>(&self, writer: &mut W, code_map: &CodeMap) -> Result<()> where
    W: WriteColor, 
[src]

Trait Implementations

impl From<InFile<Error>> for Error

impl From<InFile<Help<TypeError<Symbol, ArcType<Symbol>>, Help>>> for Error

impl From<IoError> for Error

impl From<Error> for Error

impl From<InFile<Error>> for Error

impl From<Error> for Error

impl From<Error> for Error[src]

impl From<String> for Error[src]

impl From<Errors<Spanned<Error, ByteIndex>>> for Error[src]

impl From<Errors<Error>> for Error[src]

impl Clone for Error[src]

impl Eq for Error[src]

impl PartialEq<Error> for Error[src]

impl Display for Error

impl Debug for Error[src]

impl Hash for Error[src]

impl StructuralPartialEq for Error[src]

impl StructuralEq for Error[src]

impl Error for Error

impl AsDiagnostic for Error[src]

Auto Trait Implementations

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl !UnwindSafe for Error

impl !RefUnwindSafe for Error

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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

impl<T> Any for T where
    T: Any

impl<T> CloneAny for T where
    T: Clone + Any

impl<T> AsFail for T where
    T: Fail
[src]

impl<E> Fail for E where
    E: 'static + Error + Send + Sync
[src]

impl<D, T> FromPtr<D> for T[src]

impl<T> DowncastArc for T where
    T: Downcast + Send + Sync
[src]

impl<T> MacroError for T where
    T: Clone + PartialEq<T> + Hash + AsDiagnostic + Error + Send + Sync + 'static, 
[src]

impl<T> Downcast for T where
    T: Any

impl<Choices> CoproductSubsetter<CNil, HNil> for Choices

type Remainder = Choices

impl<Source> Sculptor<HNil, HNil> for Source

type Remainder = Source

impl<T, U, I> LiftInto<U, I> for T where
    U: LiftFrom<T, I>, 

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

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

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