Struct cranelift_reader::Location[][src]

pub struct Location {
    pub line_number: usize,
}

The location of a Token or Error.

Fields

Line number. Command-line arguments are line 0 and source file lines start from 1.

Trait Implementations

impl Debug for Location
[src]

Formats the value using the given formatter. Read more

impl Clone for Location
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Location
[src]

impl PartialEq for Location
[src]

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

This method tests for !=.

impl Eq for Location
[src]

impl Default for Location
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Location

impl Sync for Location