Struct codespan::ColumnOffset
source · [−]pub struct ColumnOffset(pub RawOffset);
Expand description
A column offset in a source file
Tuple Fields
0: RawOffset
Trait Implementations
sourceimpl Add<ColumnOffset> for ColumnIndex
impl Add<ColumnOffset> for ColumnIndex
type Output = ColumnIndex
type Output = ColumnIndex
The resulting type after applying the +
operator.
sourcefn add(self, rhs: ColumnOffset) -> ColumnIndex
fn add(self, rhs: ColumnOffset) -> ColumnIndex
Performs the +
operation. Read more
sourceimpl Add<ColumnOffset> for ColumnOffset
impl Add<ColumnOffset> for ColumnOffset
type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the +
operator.
sourcefn add(self, rhs: ColumnOffset) -> ColumnOffset
fn add(self, rhs: ColumnOffset) -> ColumnOffset
Performs the +
operation. Read more
sourceimpl AddAssign<ColumnOffset> for ColumnIndex
impl AddAssign<ColumnOffset> for ColumnIndex
sourcefn add_assign(&mut self, rhs: ColumnOffset)
fn add_assign(&mut self, rhs: ColumnOffset)
Performs the +=
operation. Read more
sourceimpl AddAssign<ColumnOffset> for ColumnOffset
impl AddAssign<ColumnOffset> for ColumnOffset
sourcefn add_assign(&mut self, rhs: ColumnOffset)
fn add_assign(&mut self, rhs: ColumnOffset)
Performs the +=
operation. Read more
sourceimpl Clone for ColumnOffset
impl Clone for ColumnOffset
sourcefn clone(&self) -> ColumnOffset
fn clone(&self) -> ColumnOffset
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 ColumnOffset
impl Debug for ColumnOffset
sourceimpl Default for ColumnOffset
impl Default for ColumnOffset
sourcefn default() -> ColumnOffset
fn default() -> ColumnOffset
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for ColumnOffset
impl<'de> Deserialize<'de> for ColumnOffset
sourcefn 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
sourceimpl Display for ColumnOffset
impl Display for ColumnOffset
sourceimpl From<ColumnOffset> for RawOffset
impl From<ColumnOffset> for RawOffset
sourcefn from(offset: ColumnOffset) -> RawOffset
fn from(offset: ColumnOffset) -> RawOffset
Performs the conversion.
sourceimpl From<ColumnOffset> for usize
impl From<ColumnOffset> for usize
sourcefn from(offset: ColumnOffset) -> usize
fn from(offset: ColumnOffset) -> usize
Performs the conversion.
sourceimpl Hash for ColumnOffset
impl Hash for ColumnOffset
sourceimpl Neg for ColumnOffset
impl Neg for ColumnOffset
type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the -
operator.
sourcefn neg(self) -> ColumnOffset
fn neg(self) -> ColumnOffset
Performs the unary -
operation. Read more
sourceimpl Offset for ColumnOffset
impl Offset for ColumnOffset
const ZERO: ColumnOffset
sourceimpl Ord for ColumnOffset
impl Ord for ColumnOffset
sourceimpl PartialEq<ColumnOffset> for ColumnOffset
impl PartialEq<ColumnOffset> for ColumnOffset
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &ColumnOffset) -> bool
fn ne(&self, other: &ColumnOffset) -> bool
This method tests for !=
.
sourceimpl PartialOrd<ColumnOffset> for ColumnOffset
impl PartialOrd<ColumnOffset> for ColumnOffset
sourcefn partial_cmp(&self, other: &ColumnOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &ColumnOffset) -> 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 Serialize for ColumnOffset
impl Serialize for ColumnOffset
sourceimpl Sub<ColumnOffset> for ColumnOffset
impl Sub<ColumnOffset> for ColumnOffset
type Output = ColumnOffset
type Output = ColumnOffset
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: ColumnOffset) -> ColumnOffset
fn sub(self, rhs: ColumnOffset) -> ColumnOffset
Performs the -
operation. Read more
sourceimpl Sub<ColumnOffset> for ColumnIndex
impl Sub<ColumnOffset> for ColumnIndex
type Output = ColumnIndex
type Output = ColumnIndex
The resulting type after applying the -
operator.
sourcefn sub(self, rhs: ColumnOffset) -> ColumnIndex
fn sub(self, rhs: ColumnOffset) -> ColumnIndex
Performs the -
operation. Read more
sourceimpl SubAssign<ColumnOffset> for ColumnOffset
impl SubAssign<ColumnOffset> for ColumnOffset
sourcefn sub_assign(&mut self, rhs: ColumnOffset)
fn sub_assign(&mut self, rhs: ColumnOffset)
Performs the -=
operation. Read more
sourceimpl SubAssign<ColumnOffset> for ColumnIndex
impl SubAssign<ColumnOffset> for ColumnIndex
sourcefn sub_assign(&mut self, rhs: ColumnOffset)
fn sub_assign(&mut self, rhs: ColumnOffset)
Performs the -=
operation. Read more
impl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more