Struct gluon_base::error::InFile [−][src]
pub struct InFile<E> { /* fields omitted */ }
Error type which contains information of which file and where in the file the error occurred
Methods
impl<E: Display> InFile<E>
[src]
impl<E: Display> InFile<E>
pub fn new(source: CodeMap, error: Errors<Spanned<E, BytePos>>) -> InFile<E>
[src]
pub fn new(source: CodeMap, 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.
pub fn source_name(&self) -> &FileName
[src]
pub fn source_name(&self) -> &FileName
pub fn errors(self) -> Errors<Spanned<E, BytePos>>
[src]
pub fn errors(self) -> Errors<Spanned<E, BytePos>>
pub fn emit_string(&self, code_map: &CodeMap) -> Result<String> where
E: AsDiagnostic,
[src]
pub fn emit_string(&self, code_map: &CodeMap) -> Result<String> where
E: AsDiagnostic,
pub fn emit<W: ?Sized>(&self, writer: &mut W, code_map: &CodeMap) -> Result<()> where
W: WriteColor,
E: AsDiagnostic,
[src]
pub fn emit<W: ?Sized>(&self, writer: &mut W, code_map: &CodeMap) -> Result<()> where
W: WriteColor,
E: AsDiagnostic,
Trait Implementations
impl<E: Clone> Clone for InFile<E>
[src]
impl<E: Clone> Clone for InFile<E>
fn clone(&self) -> InFile<E>
[src]
fn clone(&self) -> InFile<E>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl<E: Debug> Debug for InFile<E>
[src]
impl<E: Debug> Debug for InFile<E>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<E> PartialEq for InFile<E> where
E: PartialEq,
[src]
impl<E> PartialEq for InFile<E> where
E: PartialEq,
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl<E: Display + AsDiagnostic> Display for InFile<E>
[src]
impl<E: Display + AsDiagnostic> Display for InFile<E>
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<E: Display + Debug + Any + AsDiagnostic> StdError for InFile<E>
[src]
impl<E: Display + Debug + Any + AsDiagnostic> StdError for InFile<E>