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
type ParseMappings: Default
Observe the parsing of the "mappings"
string.
type SortByOriginalLocation: Default
Observe sorting parsed mappings by original location.
type SortByGeneratedLocation: Default
Observe sorting parsed mappings by generated location.
type ComputeColumnSpans: Default
Observe computing column spans.
type OriginalLocationFor: Default
Observe querying what the original location for some generated location is.
type GeneratedLocationFor: Default
Observe querying what the generated location for some original location is.
type AllGeneratedLocationsFor: Default
Observe querying what all generated locations for some original location is.