pub struct CharInfo {
pub line_number: u32,
pub column_number: u32,
pub last_newline: Option<u32>,
}Expand description
Information about a character position in text
Fields§
§line_number: u32The line number (0-indexed)
column_number: u32The column number (0-indexed)
last_newline: Option<u32>The last newline position before this character (None if this is on the first line)
Trait Implementations§
impl Copy for CharInfo
impl Eq for CharInfo
impl StructuralPartialEq for CharInfo
Auto Trait Implementations§
impl Freeze for CharInfo
impl RefUnwindSafe for CharInfo
impl Send for CharInfo
impl Sync for CharInfo
impl Unpin for CharInfo
impl UnwindSafe for CharInfo
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