pub struct Pos(/* private fields */);
Expand description
The logical position within a source.
Values of this type can only be used for diagnostics. They can not be used to determine how far a source has been advanced since it was created. This is why we used a newtype.
Trait Implementations§
impl Copy for Pos
Auto Trait Implementations§
impl RefUnwindSafe for Pos
impl Send for Pos
impl Sync for Pos
impl Unpin for Pos
impl UnwindSafe for Pos
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