Struct gluon_base::error::InFile
[−]
[src]
pub struct InFile<E> { pub source_name: String, // some fields omitted }
Error type which contains information of which file and where in the file the error occurred
Fields
source_name: String
Methods
impl<E: Display> InFile<E>
[src]
fn new(
source_name: &str,
source: &str,
error: Errors<Spanned<E, BytePos>>
) -> InFile<E>
[src]
source_name: &str,
source: &str,
error: Errors<Spanned<E, BytePos>>
) -> InFile<E>
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.
fn errors(self) -> Errors<Spanned<E, Location>>
[src]
Trait Implementations
impl<E: Debug> Debug for InFile<E>
[src]
impl<E: PartialEq> PartialEq for InFile<E>
[src]
fn eq(&self, __arg_0: &InFile<E>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &InFile<E>) -> bool
[src]
This method tests for !=
.
impl<E: Display> Display for InFile<E>
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more