Trait source_map_mappings::Observer [] [src]

pub trait Observer: Default {
    type ParseMappings: Default;
    type SortByOriginalLocation: Default;
    type SortByGeneratedLocation: Default;
    type ComputeColumnSpans: Default;
    type OriginalLocationFor: Default;
    type GeneratedLocationFor: Default;
    type AllGeneratedLocationsFor: Default;
}

A trait for defining a set of RAII types that can observe the start and end of various operations and queries we perform in their constructors and destructors.

This is also implemented for () as the "null observer" that doesn't actually do anything.

Associated Types

Observe the parsing of the "mappings" string.

Observe sorting parsed mappings by original location.

Observe sorting parsed mappings by generated location.

Observe computing column spans.

Observe querying what the original location for some generated location is.

Observe querying what the generated location for some original location is.

Observe querying what all generated locations for some original location is.

Implementations on Foreign Types

impl Observer for ()
[src]

Implementors