SourceLocation

Trait SourceLocation 

Source
pub trait SourceLocation: Send + Sync {
    // Required method
    fn look_up_range_pos(
        &self,
        start: u32,
        end: u32,
    ) -> Option<(SourcePosition, SourcePosition)>;
}
Expand description

Trait representing a source map that can resolve the positions of code ranges to source file positions.

Required Methods§

Trait Implementations§

Source§

impl Debug for dyn SourceLocation

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Implementations on Foreign Types§

Source§

impl SourceLocation for &str

Source§

impl SourceLocation for Rope

Implementors§