[][src]Struct gluon_base::error::InFile

pub struct InFile<E> { /* fields omitted */ }

Error type which contains information of which file and where in the file the error occurred

Implementations

impl<E: Display> InFile<E>[src]

pub fn new(source: CodeMap, error: Errors<Spanned<E, BytePos>>) -> InFile<E>[src]

Creates a new InFile error which states that the error occurred in file using the file contents in source to provide a context to the span.

pub fn source_name(&self) -> &str[src]

pub fn source(&self) -> &CodeMap[src]

pub fn errors(&self) -> &Errors<Spanned<E, BytePos>>[src]

pub fn into_errors(self) -> Errors<Spanned<E, BytePos>>[src]

pub fn emit_string(&self) -> Result<String> where
    E: AsDiagnostic
[src]

pub fn emit(&self, writer: &mut dyn WriteColor) -> Result<()> where
    E: AsDiagnostic
[src]

Trait Implementations

impl<E: Clone> Clone for InFile<E>[src]

impl<E: Debug> Debug for InFile<E>[src]

impl<E: Display + AsDiagnostic> Display for InFile<E>[src]

impl<E> Eq for InFile<E> where
    E: Eq
[src]

impl<E: Display + Debug + Any + AsDiagnostic> Error for InFile<E>[src]

impl<E> Hash for InFile<E> where
    E: Hash
[src]

impl<E> PartialEq<InFile<E>> for InFile<E> where
    E: PartialEq
[src]

Auto Trait Implementations

impl<E> RefUnwindSafe for InFile<E> where
    E: RefUnwindSafe

impl<E> Send for InFile<E> where
    E: Send

impl<E> Sync for InFile<E> where
    E: Sync

impl<E> Unpin for InFile<E> where
    E: Unpin

impl<E> UnwindSafe for InFile<E> where
    E: UnwindSafe

Blanket Implementations

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

impl<Id> AsId<Id> for Id where
    Id: ?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.