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