Struct partiql_source_map::location::LineOffset
source · pub struct LineOffset(pub u32);
Expand description
A 0-indexed line offset, relative to some other position.
Tuple Fields§
§0: u32
Implementations§
source§impl LineOffset
impl LineOffset
Trait Implementations§
source§impl Add<u32> for LineOffset
impl Add<u32> for LineOffset
source§impl Add<LineOffset> for LineOffset
impl Add<LineOffset> for LineOffset
source§impl Clone for LineOffset
impl Clone for LineOffset
source§fn clone(&self) -> LineOffset
fn clone(&self) -> LineOffset
Returns a copy 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<LineOffset> for LineOffset
impl PartialEq<LineOffset> for LineOffset
source§fn eq(&self, other: &LineOffset) -> bool
fn eq(&self, other: &LineOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<LineOffset> for LineOffset
impl PartialOrd<LineOffset> for LineOffset
source§fn partial_cmp(&self, other: &LineOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &LineOffset) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sub<u32> for LineOffset
impl Sub<u32> for LineOffset
source§impl Sub<LineOffset> for LineOffset
impl Sub<LineOffset> for LineOffset
impl Copy for LineOffset
impl Eq for LineOffset
impl StructuralEq for LineOffset
impl StructuralPartialEq for LineOffset
Auto Trait Implementations§
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.