Struct codespan::ColumnOffset
source · pub struct ColumnOffset(pub RawOffset);
Expand description
A column offset in a source file
Tuple Fields§
§0: RawOffset
Trait Implementations§
source§impl Add<ColumnOffset> for ColumnIndex
impl Add<ColumnOffset> for ColumnIndex
§type Output = ColumnIndex
type Output = ColumnIndex
The resulting type after applying the
+
operator.source§fn add(self, rhs: ColumnOffset) -> ColumnIndex
fn add(self, rhs: ColumnOffset) -> ColumnIndex
Performs the
+
operation. Read moresource§impl Add for ColumnOffset
impl Add for ColumnOffset
§type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the
+
operator.source§fn add(self, rhs: ColumnOffset) -> ColumnOffset
fn add(self, rhs: ColumnOffset) -> ColumnOffset
Performs the
+
operation. Read moresource§impl AddAssign<ColumnOffset> for ColumnIndex
impl AddAssign<ColumnOffset> for ColumnIndex
source§fn add_assign(&mut self, rhs: ColumnOffset)
fn add_assign(&mut self, rhs: ColumnOffset)
Performs the
+=
operation. Read moresource§impl AddAssign for ColumnOffset
impl AddAssign for ColumnOffset
source§fn add_assign(&mut self, rhs: ColumnOffset)
fn add_assign(&mut self, rhs: ColumnOffset)
Performs the
+=
operation. Read moresource§impl Clone for ColumnOffset
impl Clone for ColumnOffset
source§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 moresource§impl Debug for ColumnOffset
impl Debug for ColumnOffset
source§impl Default for ColumnOffset
impl Default for ColumnOffset
source§fn default() -> ColumnOffset
fn default() -> ColumnOffset
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ColumnOffset
impl<'de> Deserialize<'de> for ColumnOffset
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for ColumnOffset
impl Display for ColumnOffset
source§impl From<ColumnOffset> for RawOffset
impl From<ColumnOffset> for RawOffset
source§fn from(offset: ColumnOffset) -> RawOffset
fn from(offset: ColumnOffset) -> RawOffset
Converts to this type from the input type.
source§impl From<ColumnOffset> for usize
impl From<ColumnOffset> for usize
source§fn from(offset: ColumnOffset) -> usize
fn from(offset: ColumnOffset) -> usize
Converts to this type from the input type.
source§impl From<i64> for ColumnOffset
impl From<i64> for ColumnOffset
source§impl Hash for ColumnOffset
impl Hash for ColumnOffset
source§impl Neg for ColumnOffset
impl Neg for ColumnOffset
§type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the
-
operator.source§fn neg(self) -> ColumnOffset
fn neg(self) -> ColumnOffset
Performs the unary
-
operation. Read moresource§impl Offset for ColumnOffset
impl Offset for ColumnOffset
const ZERO: ColumnOffset = _
source§impl Ord for ColumnOffset
impl Ord for ColumnOffset
source§fn cmp(&self, other: &ColumnOffset) -> Ordering
fn cmp(&self, other: &ColumnOffset) -> 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 for ColumnOffset
impl PartialEq for ColumnOffset
source§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 ==
.source§impl PartialOrd for ColumnOffset
impl PartialOrd for ColumnOffset
source§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 moresource§impl Serialize for ColumnOffset
impl Serialize for ColumnOffset
source§impl Sub<ColumnOffset> for ColumnIndex
impl Sub<ColumnOffset> for ColumnIndex
§type Output = ColumnIndex
type Output = ColumnIndex
The resulting type after applying the
-
operator.source§fn sub(self, rhs: ColumnOffset) -> ColumnIndex
fn sub(self, rhs: ColumnOffset) -> ColumnIndex
Performs the
-
operation. Read moresource§impl Sub for ColumnOffset
impl Sub for ColumnOffset
§type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the
-
operator.source§fn sub(self, rhs: ColumnOffset) -> ColumnOffset
fn sub(self, rhs: ColumnOffset) -> ColumnOffset
Performs the
-
operation. Read moresource§impl SubAssign<ColumnOffset> for ColumnIndex
impl SubAssign<ColumnOffset> for ColumnIndex
source§fn sub_assign(&mut self, rhs: ColumnOffset)
fn sub_assign(&mut self, rhs: ColumnOffset)
Performs the
-=
operation. Read moresource§impl SubAssign for ColumnOffset
impl SubAssign for ColumnOffset
source§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