pub struct LineOffset(pub u32);Expand description
A 0-indexed line offset, relative to some other position.
Tuple Fields§
§0: u32Implementations§
Source§impl LineOffset
impl LineOffset
Trait Implementations§
Source§impl Add<u32> for LineOffset
impl Add<u32> for LineOffset
Source§impl Add for LineOffset
impl Add for LineOffset
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 Default for LineOffset
impl Default for LineOffset
Source§fn default() -> LineOffset
fn default() -> LineOffset
Returns the “default value” for a type. Read more
Source§impl From<usize> for LineOffset
impl From<usize> for LineOffset
Source§impl Hash for LineOffset
impl Hash 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 Sub<u32> for LineOffset
impl Sub<u32> for LineOffset
Source§impl Sub for LineOffset
impl Sub for LineOffset
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.