Struct syntax::codemap::BytePosExperimental [-]  [+] [src]

pub struct BytePos(pub u32);

A byte offset. Keep this small (currently 32-bits), as AST contains a lot of them.

Trait Implementations

impl Pos for BytePos

fn from_uint(n: uint) -> BytePos

fn to_uint(&self) -> uint

impl Add<BytePos, BytePos> for BytePos

fn add(self, rhs: BytePos) -> BytePos

impl Sub<BytePos, BytePos> for BytePos

fn sub(self, rhs: BytePos) -> BytePos

Derived Implementations

impl Show for BytePos

fn fmt(&self, __arg_0: &mut Formatter) -> Result

impl PartialOrd for BytePos

fn partial_cmp(&self, __arg_0: &BytePos) -> Option<Ordering>

fn lt(&self, __arg_0: &BytePos) -> bool

fn le(&self, __arg_0: &BytePos) -> bool

fn gt(&self, __arg_0: &BytePos) -> bool

fn ge(&self, __arg_0: &BytePos) -> bool

impl<__S: Writer> Hash<__S> for BytePos

fn hash(&self, __arg_0: &mut __S)

impl Eq for BytePos

fn assert_receiver_is_total_eq(&self)

impl PartialEq for BytePos

fn eq(&self, __arg_0: &BytePos) -> bool

fn ne(&self, __arg_0: &BytePos) -> bool

impl Copy for BytePos

impl Clone for BytePos

fn clone(&self) -> BytePos

fn clone_from(&mut self, source: &Self)