pub struct TextPos {
pub row: u32,
pub col: u32,
}Expand description
A position in the text: 1-based row (lines are counted by line feeds) and 1-based column (counted in characters from the last line feed).
Fields§
§row: u32The line, from 1.
col: u32The character in the line, from 1.
Implementations§
Trait Implementations§
impl Copy for TextPos
impl Eq for TextPos
impl StructuralPartialEq for TextPos
Auto Trait Implementations§
impl Forget for TextPos
impl Freeze for TextPos
impl RefUnwindSafe for TextPos
impl Send for TextPos
impl Sync for TextPos
impl Unpin for TextPos
impl UnsafeUnpin for TextPos
impl UnwindSafe for TextPos
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