pub struct LineOffset {
pub line: usize,
pub line_offset: usize,
pub absolute_offset: usize,
}Fields§
§line: usize§line_offset: usize§absolute_offset: usizeImplementations§
Source§impl LineOffset
impl LineOffset
Trait Implementations§
Source§impl Clone for LineOffset
impl Clone for LineOffset
Source§fn clone(&self) -> LineOffset
fn clone(&self) -> LineOffset
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 LineOffset
impl Debug for LineOffset
Source§impl Ord for LineOffset
impl Ord for LineOffset
Source§fn cmp(&self, other: &LineOffset) -> Ordering
fn cmp(&self, other: &LineOffset) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for LineOffset
impl PartialEq for LineOffset
Source§impl PartialOrd for LineOffset
impl PartialOrd for LineOffset
Source§impl SpanOffset for LineOffset
impl SpanOffset for LineOffset
fn absolute_offset(&self) -> usize
impl Copy for LineOffset
impl Eq for LineOffset
impl StructuralPartialEq for LineOffset
Auto Trait Implementations§
impl Freeze for LineOffset
impl RefUnwindSafe for LineOffset
impl Send for LineOffset
impl Sync for LineOffset
impl Unpin for LineOffset
impl UnwindSafe for LineOffset
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