[][src]Struct karo::Col

pub struct Col { /* fields omitted */ }

Methods

impl Col[src]

pub fn saturating_add(self, num: u16) -> Self[src]

Add a number of cols, saturate the value to the highest col number available.

pub fn saturating_sub(self, num: u16) -> Self[src]

Subtract a number of cols, saturate the value to the lowest col number available.

pub fn checked_add(self, num: u16) -> Option<Self>[src]

Add a number of cols, checking the value range.

pub fn checked_sub(self, num: u16) -> Option<Self>[src]

Subtract a number of cols, saturate the value to the lowest row number available.

Trait Implementations

impl AsRangeString for Col[src]

type Mode = ReferenceMode

impl Into<u16> for Col[src]

impl From<Col> for ColRange[src]

impl Clone for Col[src]

impl Copy for Col[src]

impl Default for Col[src]

impl Eq for Col[src]

impl Ord for Col[src]

impl PartialEq<Col> for Col[src]

impl PartialOrd<Col> for Col[src]

impl Debug for Col[src]

impl TryFrom<u16> for Col[src]

type Error = Error

The type returned in the event of a conversion error.

impl Hash for Col[src]

impl StructuralPartialEq for Col[src]

impl StructuralEq for Col[src]

Auto Trait Implementations

impl Send for Col

impl Sync for Col

impl Unpin for Col

impl UnwindSafe for Col

impl RefUnwindSafe for Col

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]