Struct gluon_base::pos::LineOffset
pub struct LineOffset(pub i64);
Expand description
A line offset in a source file
Tuple Fields§
§0: i64
Trait Implementations§
§impl Add<LineOffset> for LineIndex
impl Add<LineOffset> for LineIndex
§impl Add for LineOffset
impl Add for LineOffset
§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
+
operator.§fn add(self, rhs: LineOffset) -> LineOffset
fn add(self, rhs: LineOffset) -> LineOffset
Performs the
+
operation. Read more§impl AddAssign<LineOffset> for LineIndex
impl AddAssign<LineOffset> for LineIndex
§fn add_assign(&mut self, rhs: LineOffset)
fn add_assign(&mut self, rhs: LineOffset)
Performs the
+=
operation. Read more§impl AddAssign for LineOffset
impl AddAssign for LineOffset
§fn add_assign(&mut self, rhs: LineOffset)
fn add_assign(&mut self, rhs: LineOffset)
Performs the
+=
operation. Read more§impl Clone for LineOffset
impl Clone for LineOffset
§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 more§impl Debug for LineOffset
impl Debug for LineOffset
§impl Default for LineOffset
impl Default for LineOffset
§fn default() -> LineOffset
fn default() -> LineOffset
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for LineOffset
impl<'de> Deserialize<'de> for LineOffset
§fn deserialize<__D>(
__deserializer: __D
) -> Result<LineOffset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<LineOffset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for LineOffset
impl Display for LineOffset
§impl From<i64> for LineOffset
impl From<i64> for LineOffset
§fn from(i: i64) -> LineOffset
fn from(i: i64) -> LineOffset
Converts to this type from the input type.
§impl Hash for LineOffset
impl Hash for LineOffset
§impl Neg for LineOffset
impl Neg for LineOffset
§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
-
operator.§fn neg(self) -> LineOffset
fn neg(self) -> LineOffset
Performs the unary
-
operation. Read more§impl Offset for LineOffset
impl Offset for LineOffset
const ZERO: LineOffset = _
§impl Ord for LineOffset
impl Ord for LineOffset
§impl PartialEq for LineOffset
impl PartialEq for LineOffset
§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 ==
.§impl PartialOrd for LineOffset
impl PartialOrd for LineOffset
§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 more§impl Serialize for LineOffset
impl Serialize for LineOffset
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
§impl Sub<LineOffset> for LineIndex
impl Sub<LineOffset> for LineIndex
§impl Sub for LineOffset
impl Sub for LineOffset
§type Output = LineOffset
type Output = LineOffset
The resulting type after applying the
-
operator.§fn sub(self, rhs: LineOffset) -> LineOffset
fn sub(self, rhs: LineOffset) -> LineOffset
Performs the
-
operation. Read more§impl SubAssign<LineOffset> for LineIndex
impl SubAssign<LineOffset> for LineIndex
§fn sub_assign(&mut self, rhs: LineOffset)
fn sub_assign(&mut self, rhs: LineOffset)
Performs the
-=
operation. Read more§impl SubAssign for LineOffset
impl SubAssign for LineOffset
§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