Struct source_map_mappings::Mappings [] [src]

pub struct Mappings<O = ()> where
    O: Observer
{ /* fields omitted */ }

A parsed set of mappings that can be queried.

Constructed via parse_mappings.

Methods

impl<O: Observer> Mappings<O>
[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 for the given source and ordered by original location.

[src]

Iterate over all mappings that contain original location information, sorted by their original location information.

[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<O: Debug> Debug for Mappings<O> where
    O: Observer,
    O::SortByOriginalLocation: Debug
[src]

[src]

Formats the value using the given formatter.

impl<O: Observer> Default for Mappings<O>
[src]

[src]

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