language_reporting

Trait ReportingSpan

Source
pub trait ReportingSpan: Debug + Copy {
    // Required methods
    fn with_start(&self, start: usize) -> Self;
    fn with_end(&self, end: usize) -> Self;
    fn start(&self) -> usize;
    fn end(&self) -> usize;
}

Required Methods§

Source

fn with_start(&self, start: usize) -> Self

Source

fn with_end(&self, end: usize) -> Self

Source

fn start(&self) -> usize

Source

fn end(&self) -> usize

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§