pub struct IcuPosition {
pub offset: usize,
pub line: usize,
pub column: usize,
}Expand description
Byte offset plus line/column location inside the original input.
Fields§
§offset: usizeZero-based byte offset from the start of the input.
line: usizeOne-based line number.
column: usizeOne-based column number.
Trait Implementations§
Source§impl Clone for IcuPosition
impl Clone for IcuPosition
Source§fn clone(&self) -> IcuPosition
fn clone(&self) -> IcuPosition
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 IcuPosition
impl Debug for IcuPosition
Source§impl PartialEq for IcuPosition
impl PartialEq for IcuPosition
impl Copy for IcuPosition
impl Eq for IcuPosition
impl StructuralPartialEq for IcuPosition
Auto Trait Implementations§
impl Freeze for IcuPosition
impl RefUnwindSafe for IcuPosition
impl Send for IcuPosition
impl Sync for IcuPosition
impl Unpin for IcuPosition
impl UnsafeUnpin for IcuPosition
impl UnwindSafe for IcuPosition
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