Struct syntax::diagnostics::metadata::ErrorLocation
[−]
[src]
pub struct ErrorLocation { pub filename: FileName, pub line: usize, }
JSON encodable error location type with filename and line number.
Fields
filename: FileName
line: usize
Methods
impl ErrorLocation
[src]
pub fn from_span(ecx: &ExtCtxt, sp: Span) -> ErrorLocation
[src]
Create an error location from a span.
Trait Implementations
impl PartialEq for ErrorLocation
[src]
fn eq(&self, __arg_0: &ErrorLocation) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ErrorLocation) -> bool
[src]
This method tests for !=
.