mago_span

Trait HasPosition

Source
pub trait HasPosition {
    // Required method
    fn position(&self) -> Position;

    // Provided method
    fn offset(&self) -> usize { ... }
}

Required Methods§

Provided Methods§

Source

fn offset(&self) -> usize

Trait Implementations§

Implementors§