pub struct IndexRange {
pub row_range: RowRange,
pub col_range: ColRange,
}
Fields§
§row_range: RowRange
§col_range: ColRange
Implementations§
Source§impl IndexRange
impl IndexRange
pub fn new_from_ranges(row_range: RowRange, col_range: ColRange) -> Self
pub fn new_indexes(first: Index, last: Index) -> IndexRange
pub fn new_row_col_row_col<R1, C1, R2, C2>( row1: R1, col1: C1, row2: R2, col2: C2, ) -> Result<IndexRange>
pub fn extend_to<R>(&mut self, r: R) -> &mut Selfwhere
IndexRange: From<R>,
pub fn extend_to_col(&mut self, col: Col) -> &mut Self
pub fn extend_to_row(&mut self, row: Row) -> &mut Self
pub fn top_left(&self) -> Index
pub fn top_right(&self) -> Index
pub fn bottom_left(&self) -> Index
pub fn bottom_right(&self) -> Index
Trait Implementations§
Source§impl AsRangeString for IndexRange
impl AsRangeString for IndexRange
Source§impl Clone for IndexRange
impl Clone for IndexRange
Source§fn clone(&self) -> IndexRange
fn clone(&self) -> IndexRange
Returns a duplicate 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 IndexRange
impl Debug for IndexRange
Source§impl From<Index> for IndexRange
impl From<Index> for IndexRange
Source§fn from(index: Index) -> IndexRange
fn from(index: Index) -> IndexRange
Converts to this type from the input type.
Source§impl Hash for IndexRange
impl Hash for IndexRange
Source§impl PartialEq for IndexRange
impl PartialEq for IndexRange
impl Copy for IndexRange
impl Eq for IndexRange
impl StructuralPartialEq for IndexRange
Auto Trait Implementations§
impl Freeze for IndexRange
impl RefUnwindSafe for IndexRange
impl Send for IndexRange
impl Sync for IndexRange
impl Unpin for IndexRange
impl UnwindSafe for IndexRange
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.