Struct source_map_mappings::Mapping [] [src]

pub struct Mapping {
    pub generated_line: u32,
    pub generated_column: u32,
    pub last_generated_column: Option<u32>,
    pub original: Option<OriginalLocation>,
}

A single bidirectional mapping.

Always contains generated location information.

Might contain original location information, and if so, might also have an associated name.

Fields

The generated line.

The generated column.

The end column of this mapping's generated location span.

Before Mappings::computed_column_spans has been called, this is always None. After Mappings::computed_column_spans has been called, it either contains Some column at which the generated location ends (exclusive), or it contains None if it spans until the end of the generated line.

The original location information, if any.

Trait Implementations

impl Clone for Mapping
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Mapping
[src]

[src]

Formats the value using the given formatter.

impl PartialEq for Mapping
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for Mapping
[src]

impl Default for Mapping
[src]

[src]

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