pub struct Col { /* private fields */ }
Implementations§
Source§impl Col
impl Col
Sourcepub fn saturating_add(self, num: u16) -> Self
pub fn saturating_add(self, num: u16) -> Self
Add a number of cols, saturate the value to the highest col number available.
Sourcepub fn saturating_sub(self, num: u16) -> Self
pub fn saturating_sub(self, num: u16) -> Self
Subtract a number of cols, saturate the value to the lowest col number available.
Sourcepub fn checked_add(self, num: u16) -> Option<Self>
pub fn checked_add(self, num: u16) -> Option<Self>
Add a number of cols, checking the value range.
Sourcepub fn checked_sub(self, num: u16) -> Option<Self>
pub fn checked_sub(self, num: u16) -> Option<Self>
Subtract a number of cols, saturate the value to the lowest row number available.
Trait Implementations§
Source§impl AsRangeString for Col
impl AsRangeString for Col
Source§impl Ord for Col
impl Ord for Col
Source§impl PartialOrd for Col
impl PartialOrd for Col
impl Copy for Col
impl Eq for Col
impl StructuralPartialEq for Col
Auto Trait Implementations§
impl Freeze for Col
impl RefUnwindSafe for Col
impl Send for Col
impl Sync for Col
impl Unpin for Col
impl UnwindSafe for Col
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.