pub struct BytePos(pub SrcOffset);Expand description
Position within source specified by byte offset. This is not equal to
CharPos thanks to UTF-8 and multibyte chars. This type always represents
positions relative to the whole codemap.
Tuple Fields§
§0: SrcOffsetTrait Implementations§
Source§impl Ord for BytePos
impl Ord for BytePos
Source§impl PartialOrd for BytePos
impl PartialOrd for BytePos
impl Copy for BytePos
impl Eq for BytePos
impl StructuralPartialEq for BytePos
Auto Trait Implementations§
impl Freeze for BytePos
impl RefUnwindSafe for BytePos
impl Send for BytePos
impl Sync for BytePos
impl Unpin for BytePos
impl UnwindSafe for BytePos
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more