pub struct Position {
pub row: usize,
pub column: usize,
pub byte_offset: usize,
}Expand description
Position in a source file.
Contains the row and column number, as well as the byte offset from the start of the file, since different situations may call for one of the other.
Fields§
§row: usizeThe line number of the entity in the source file
column: usizeThe column number on the line
byte_offset: usizeByte offset from the start of the file for the entity
Trait Implementations§
impl StructuralPartialEq for Position
Auto Trait Implementations§
impl Freeze for Position
impl RefUnwindSafe for Position
impl Send for Position
impl Sync for Position
impl Unpin for Position
impl UnwindSafe for Position
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