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 ErrorLocationpub fn from_span(ecx: &ExtCtxt, sp: Span) -> ErrorLocation[src]
pub fn from_span(ecx: &ExtCtxt, sp: Span) -> ErrorLocationCreate an error location from a span.
Trait Implementations
impl PartialEq for ErrorLocation[src]
impl PartialEq for ErrorLocationfn eq(&self, other: &ErrorLocation) -> bool[src]
fn eq(&self, other: &ErrorLocation) -> boolThis 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) -> boolThis method tests for !=.
impl Decodable for ErrorLocation[src]
impl Decodable for ErrorLocationimpl Encodable for ErrorLocation[src]
impl Encodable for ErrorLocationAuto Trait Implementations
impl Send for ErrorLocation
impl Send for ErrorLocationimpl Sync for ErrorLocation
impl Sync for ErrorLocation