Struct gluon_base::pos::LineOffset
source · pub struct LineOffset(pub i64);
Expand description
A line offset in a source file
Tuple Fields§
§0: i64
Trait Implementations§
source§impl Add<LineOffset> for LineIndex
impl Add<LineOffset> for LineIndex
source§impl Add<LineOffset> for LineOffset
impl Add<LineOffset> for LineOffset
§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
+
operator.source§fn add(self, rhs: LineOffset) -> LineOffset
fn add(self, rhs: LineOffset) -> LineOffset
Performs the
+
operation. Read moresource§impl AddAssign<LineOffset> for LineIndex
impl AddAssign<LineOffset> for LineIndex
source§fn add_assign(&mut self, rhs: LineOffset)
fn add_assign(&mut self, rhs: LineOffset)
Performs the
+=
operation. Read moresource§impl AddAssign<LineOffset> for LineOffset
impl AddAssign<LineOffset> for LineOffset
source§fn add_assign(&mut self, rhs: LineOffset)
fn add_assign(&mut self, rhs: LineOffset)
Performs the
+=
operation. Read moresource§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 Display for LineOffset
impl Display for LineOffset
source§impl From<i64> for LineOffset
impl From<i64> for LineOffset
source§fn from(i: i64) -> LineOffset
fn from(i: i64) -> LineOffset
Converts to this type from the input type.
source§impl Hash for LineOffset
impl Hash for LineOffset
source§impl Neg for LineOffset
impl Neg for LineOffset
§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
-
operator.source§fn neg(self) -> LineOffset
fn neg(self) -> LineOffset
Performs the unary
-
operation. Read moresource§impl Offset for LineOffset
impl Offset for LineOffset
const ZERO: 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<LineOffset> for LineIndex
impl Sub<LineOffset> for LineIndex
source§impl Sub<LineOffset> for LineOffset
impl Sub<LineOffset> for LineOffset
§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
-
operator.source§fn sub(self, rhs: LineOffset) -> LineOffset
fn sub(self, rhs: LineOffset) -> LineOffset
Performs the
-
operation. Read moresource§impl SubAssign<LineOffset> for LineIndex
impl SubAssign<LineOffset> for LineIndex
source§fn sub_assign(&mut self, rhs: LineOffset)
fn sub_assign(&mut self, rhs: LineOffset)
Performs the
-=
operation. Read moresource§impl SubAssign<LineOffset> for LineOffset
impl SubAssign<LineOffset> for LineOffset
source§fn sub_assign(&mut self, rhs: LineOffset)
fn sub_assign(&mut self, rhs: LineOffset)
Performs the
-=
operation. Read moreimpl 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