[][src]Struct karo::IndexRange

pub struct IndexRange {
    pub row_range: RowRange,
    pub col_range: ColRange,
}

Fields

row_range: RowRangecol_range: ColRange

Methods

impl IndexRange[src]

pub fn new_from_ranges(row_range: RowRange, col_range: ColRange) -> Self[src]

pub fn new_indexes(first: Index, last: Index) -> IndexRange[src]

pub fn new_row_col_row_col<R1, C1, R2, C2>(
    row1: R1,
    col1: C1,
    row2: R2,
    col2: C2
) -> Result<IndexRange> where
    Row: TryFrom<R1, Error = Error>,
    Col: TryFrom<C1, Error = Error>,
    Row: TryFrom<R2, Error = Error>,
    Col: TryFrom<C2, Error = Error>, 
[src]

pub fn extend_to<R>(&mut self, r: R) -> &mut Self where
    IndexRange: From<R>, 
[src]

pub fn extend_to_col(&mut self, col: Col) -> &mut Self[src]

pub fn extend_to_row(&mut self, row: Row) -> &mut Self[src]

pub fn top_left(&self) -> Index[src]

pub fn top_right(&self) -> Index[src]

pub fn bottom_left(&self) -> Index[src]

pub fn bottom_right(&self) -> Index[src]

Trait Implementations

impl AsRangeString for IndexRange[src]

type Mode = (ReferenceMode, ReferenceMode)

impl From<Index> for IndexRange[src]

impl Clone for IndexRange[src]

impl Copy for IndexRange[src]

impl Eq for IndexRange[src]

impl PartialEq<IndexRange> for IndexRange[src]

impl Debug for IndexRange[src]

impl Hash for IndexRange[src]

impl StructuralPartialEq for IndexRange[src]

impl StructuralEq for IndexRange[src]

Auto Trait Implementations

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]