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

Methods

impl ErrorLocation
[src]

Create an error location from a span.

Trait Implementations

impl PartialEq for ErrorLocation
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Decodable for ErrorLocation
[src]

impl Encodable for ErrorLocation
[src]

Auto Trait Implementations