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