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: u32Implementations
sourceimpl LineOffset
impl LineOffset
Trait Implementations
sourceimpl Add<LineOffset> for LineOffset
impl Add<LineOffset> for LineOffset
sourceimpl Add<u32> for LineOffset
impl Add<u32> for LineOffset
sourceimpl Clone for LineOffset
impl Clone for LineOffset
sourcefn clone(&self) -> LineOffset
fn clone(&self) -> LineOffset
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for LineOffset
impl Debug for LineOffset
sourceimpl Default for LineOffset
impl Default for LineOffset
sourcefn default() -> LineOffset
fn default() -> LineOffset
Returns the “default value” for a type. Read more
sourceimpl From<usize> for LineOffset
impl From<usize> for LineOffset
sourceimpl Hash for LineOffset
impl Hash for LineOffset
sourceimpl Ord for LineOffset
impl Ord for LineOffset
sourcefn cmp(&self, other: &LineOffset) -> Ordering
fn cmp(&self, other: &LineOffset) -> Ordering
1.21.0 · sourcefn max(self, other: Self) -> Self
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourcefn min(self, other: Self) -> Self
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Self where
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<LineOffset> for LineOffset
impl PartialEq<LineOffset> for LineOffset
sourcefn 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 ==. Read more
sourcefn ne(&self, other: &LineOffset) -> bool
fn ne(&self, other: &LineOffset) -> bool
This method tests for !=.
sourceimpl PartialOrd<LineOffset> for LineOffset
impl PartialOrd<LineOffset> for LineOffset
sourcefn partial_cmp(&self, other: &LineOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &LineOffset) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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 more
sourceimpl Sub<LineOffset> for LineOffset
impl Sub<LineOffset> for LineOffset
sourceimpl Sub<u32> for LineOffset
impl Sub<u32> 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more