Struct gluon_base::pos::ColumnOffset
pub struct ColumnOffset(pub i64);
Expand description
A column offset in a source file
Tuple Fields§
§0: i64
Trait Implementations§
§impl Add<ColumnOffset> for ColumnIndex
impl Add<ColumnOffset> for ColumnIndex
§type Output = ColumnIndex
type Output = ColumnIndex
The resulting type after applying the
+
operator.§fn add(self, rhs: ColumnOffset) -> ColumnIndex
fn add(self, rhs: ColumnOffset) -> ColumnIndex
Performs the
+
operation. Read more§impl Add for ColumnOffset
impl Add for ColumnOffset
§type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the
+
operator.§fn add(self, rhs: ColumnOffset) -> ColumnOffset
fn add(self, rhs: ColumnOffset) -> ColumnOffset
Performs the
+
operation. Read more§impl AddAssign<ColumnOffset> for ColumnIndex
impl AddAssign<ColumnOffset> for ColumnIndex
§fn add_assign(&mut self, rhs: ColumnOffset)
fn add_assign(&mut self, rhs: ColumnOffset)
Performs the
+=
operation. Read more§impl AddAssign for ColumnOffset
impl AddAssign for ColumnOffset
§fn add_assign(&mut self, rhs: ColumnOffset)
fn add_assign(&mut self, rhs: ColumnOffset)
Performs the
+=
operation. Read more§impl Clone for ColumnOffset
impl Clone for ColumnOffset
§fn clone(&self) -> ColumnOffset
fn clone(&self) -> ColumnOffset
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 ColumnOffset
impl Debug for ColumnOffset
§impl Default for ColumnOffset
impl Default for ColumnOffset
§fn default() -> ColumnOffset
fn default() -> ColumnOffset
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for ColumnOffset
impl<'de> Deserialize<'de> for ColumnOffset
§fn deserialize<__D>(
__deserializer: __D
) -> Result<ColumnOffset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D
) -> Result<ColumnOffset, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl Display for ColumnOffset
impl Display for ColumnOffset
§impl From<i64> for ColumnOffset
impl From<i64> for ColumnOffset
§fn from(i: i64) -> ColumnOffset
fn from(i: i64) -> ColumnOffset
Converts to this type from the input type.
§impl Hash for ColumnOffset
impl Hash for ColumnOffset
§impl Neg for ColumnOffset
impl Neg for ColumnOffset
§type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the
-
operator.§fn neg(self) -> ColumnOffset
fn neg(self) -> ColumnOffset
Performs the unary
-
operation. Read more§impl Offset for ColumnOffset
impl Offset for ColumnOffset
const ZERO: ColumnOffset = _
§impl Ord for ColumnOffset
impl Ord for ColumnOffset
§impl PartialEq for ColumnOffset
impl PartialEq for ColumnOffset
§fn eq(&self, other: &ColumnOffset) -> bool
fn eq(&self, other: &ColumnOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for ColumnOffset
impl PartialOrd for ColumnOffset
§fn partial_cmp(&self, other: &ColumnOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &ColumnOffset) -> 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 ColumnOffset
impl Serialize for ColumnOffset
§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<ColumnOffset> for ColumnIndex
impl Sub<ColumnOffset> for ColumnIndex
§type Output = ColumnIndex
type Output = ColumnIndex
The resulting type after applying the
-
operator.§fn sub(self, rhs: ColumnOffset) -> ColumnIndex
fn sub(self, rhs: ColumnOffset) -> ColumnIndex
Performs the
-
operation. Read more§impl Sub for ColumnOffset
impl Sub for ColumnOffset
§type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the
-
operator.§fn sub(self, rhs: ColumnOffset) -> ColumnOffset
fn sub(self, rhs: ColumnOffset) -> ColumnOffset
Performs the
-
operation. Read more§impl SubAssign<ColumnOffset> for ColumnIndex
impl SubAssign<ColumnOffset> for ColumnIndex
§fn sub_assign(&mut self, rhs: ColumnOffset)
fn sub_assign(&mut self, rhs: ColumnOffset)
Performs the
-=
operation. Read more§impl SubAssign for ColumnOffset
impl SubAssign for ColumnOffset
§fn sub_assign(&mut self, rhs: ColumnOffset)
fn sub_assign(&mut self, rhs: ColumnOffset)
Performs the
-=
operation. Read moreimpl Copy for ColumnOffset
impl Eq for ColumnOffset
impl StructuralEq for ColumnOffset
impl StructuralPartialEq for ColumnOffset
Auto Trait Implementations§
impl RefUnwindSafe for ColumnOffset
impl Send for ColumnOffset
impl Sync for ColumnOffset
impl Unpin for ColumnOffset
impl UnwindSafe for ColumnOffset
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