Trait rustc_span::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

Implementors§