pub struct OutputPosition {
pub char_offset: usize,
pub line: u32,
pub column: u32,
}Expand description
Output position information with character offset and line/column.
Fields§
§char_offset: usizeCharacter (not byte) offset from the start of the text.
line: u321-based line number.
column: u321-based column number.
Trait Implementations§
Source§impl Clone for OutputPosition
impl Clone for OutputPosition
Source§fn clone(&self) -> OutputPosition
fn clone(&self) -> OutputPosition
Returns a duplicate 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 OutputPosition
impl Debug for OutputPosition
Source§impl PartialEq for OutputPosition
impl PartialEq for OutputPosition
impl Copy for OutputPosition
impl Eq for OutputPosition
impl StructuralPartialEq for OutputPosition
Auto Trait Implementations§
impl Freeze for OutputPosition
impl RefUnwindSafe for OutputPosition
impl Send for OutputPosition
impl Sync for OutputPosition
impl Unpin for OutputPosition
impl UnwindSafe for OutputPosition
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