rustc_span

Trait Pos

Source
pub trait Pos {
    // Required methods
    fn from_usize(n: usize) -> Self;
    fn to_usize(&self) -> usize;
    fn from_u32(n: u32) -> Self;
    fn to_u32(&self) -> u32;
}

Required Methods§

Source

fn from_usize(n: usize) -> Self

Source

fn to_usize(&self) -> usize

Source

fn from_u32(n: u32) -> Self

Source

fn to_u32(&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§