scnr

Trait PositionProvider

Source
pub trait PositionProvider {
    // Required method
    fn position(&self, offset: usize) -> Position;
}
Expand description

A trait for providing the position of an offset.

Required Methods§

Source

fn position(&self, offset: usize) -> Position

Returns the position of the given offset.

Implementors§