Struct syntex_syntax::codemap::BytePos
[−]
[src]
pub struct BytePos(pub u32);
A byte offset. Keep this small (currently 32-bits), as AST contains a lot of them.
pub struct BytePos(pub u32);
A byte offset. Keep this small (currently 32-bits), as AST contains a lot of them.
impl Pos for BytePos
fn from_usize(n: usize) -> BytePos
fn to_usize(&self) -> usize
impl Add for BytePos
impl Sub for BytePos
impl Encodable for BytePos
impl Decodable for BytePos
impl Debug for BytePos
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 Hash for BytePos
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
impl Eq for BytePos
impl PartialEq for BytePos
impl Copy for BytePos
impl Clone for BytePos
fn clone(&self) -> BytePos
fn clone_from(&mut self, source: &Self)