Trait Position

Source
pub trait Position: Sub<Self, Output = i32> + Copy {
    // Required methods
    fn index(&self) -> u32;
    fn line(&self) -> u32;
    fn column(&self) -> u32;
}

Required Methods§

Source

fn index(&self) -> u32

Source

fn line(&self) -> u32

Source

fn column(&self) -> u32

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§