Trait Span

Source
pub trait Span: Clone + Debug {
    type LineColumn: LineColumn;

    // Required methods
    fn line_column(line: usize, column: usize) -> Self::LineColumn;
    fn start(&self) -> Self::LineColumn;
    fn end(&self) -> Self::LineColumn;
}

Required Associated Types§

Required Methods§

Source

fn line_column(line: usize, column: usize) -> Self::LineColumn

Source

fn start(&self) -> Self::LineColumn

Source

fn end(&self) -> Self::LineColumn

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§