pub struct SourcePositionOffset {
pub index: usize,
pub line: usize,
pub column: usize,
}Expand description
Represents an offset in source text.
Fields§
§index: usizeThe 0-based character offset.
line: usizeThe 0-based line offset.
column: usizeThe 0-based column offset.
Trait Implementations§
Source§impl Clone for SourcePositionOffset
impl Clone for SourcePositionOffset
Source§impl Debug for SourcePositionOffset
impl Debug for SourcePositionOffset
Auto Trait Implementations§
impl Freeze for SourcePositionOffset
impl RefUnwindSafe for SourcePositionOffset
impl Send for SourcePositionOffset
impl Sync for SourcePositionOffset
impl Unpin for SourcePositionOffset
impl UnsafeUnpin for SourcePositionOffset
impl UnwindSafe for SourcePositionOffset
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