Struct source_map_mappings::Mappings [] [src]

pub struct Mappings { /* fields omitted */ }

A parsed set of mappings that can be queried.

Constructed via parse_mappings.

Methods

impl Mappings
[src]

[src]

Get the full set of mappings, ordered by generated location.

[src]

Compute the last generated column of each mapping.

After this method has been called, any mappings with last_generated_column == None means that the mapping spans to the end of the line.

[src]

Get the set of mappings that have original location information, ordered by original location.

[src]

Get the mapping closest to the given generated location, if any exists.

[src]

Get the mapping closest to the given original location, if any exists.

[src]

Get all mappings at the given original location.

If original_column is None, get all mappings on the given source and original line regardless what columns they have. If original_column is Some, only return mappings for which all of source, original line, and original column match.

Trait Implementations

impl Debug for Mappings
[src]

[src]

Formats the value using the given formatter.

impl Default for Mappings
[src]

[src]

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