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 BytePosfn from_usize(n: usize) -> BytePosfn to_usize(&self) -> usizeimpl Add for BytePosimpl Sub for BytePosimpl Encodable for BytePosimpl Decodable for BytePosimpl Debug for BytePosimpl PartialOrd for BytePosfn partial_cmp(&self, __arg_0: &BytePos) -> Option<Ordering>fn lt(&self, __arg_0: &BytePos) -> boolfn le(&self, __arg_0: &BytePos) -> boolfn gt(&self, __arg_0: &BytePos) -> boolfn ge(&self, __arg_0: &BytePos) -> boolimpl Hash for BytePosfn hash<__H: Hasher>(&self, __arg_0: &mut __H)fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasherimpl Eq for BytePosimpl PartialEq for BytePosimpl Copy for BytePosimpl Clone for BytePosfn clone(&self) -> BytePosfn clone_from(&mut self, source: &Self)