pub struct Position {
pub line: u32,
pub column: u32,
pub byte_offset: usize,
}Expand description
A source position: where a node parsed from the input started.
Matches html-conform::finding::SourceLocation’s field layout exactly
so the eventual integration (Phase 05) needs no conversion.
Fields§
§line: u32One-based line number.
column: u32One-based column number.
byte_offset: usizeZero-based byte offset.
Trait Implementations§
impl Copy for Position
impl Eq for Position
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 UnsafeUnpin 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