pub struct TextPosition {
pub line: u64,
pub column: u64,
pub offset: u64,
}
Expand description
A position in a text i.e. a line
number starting from 0, a column
number starting from 0 (in number of code points) and a global file offset
starting from 0 (in number of bytes).
Fields§
§line: u64
§column: u64
§offset: u64
Trait Implementations§
Source§impl Clone for TextPosition
impl Clone for TextPosition
Source§fn clone(&self) -> TextPosition
fn clone(&self) -> TextPosition
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for TextPosition
impl Debug for TextPosition
Source§impl PartialEq for TextPosition
impl PartialEq for TextPosition
impl Copy for TextPosition
impl Eq for TextPosition
impl StructuralPartialEq for TextPosition
Auto Trait Implementations§
impl Freeze for TextPosition
impl RefUnwindSafe for TextPosition
impl Send for TextPosition
impl Sync for TextPosition
impl Unpin for TextPosition
impl UnwindSafe for TextPosition
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