pub struct Index {
pub row: Row,
pub col: Col,
}Fields§
§row: Row§col: ColImplementations§
Source§impl Index
impl Index
pub fn new(row: Row, col: Col) -> Self
pub fn saturating_down(self, rows: u32) -> Self
pub fn saturating_up(self, rows: u32) -> Self
pub fn saturating_right(self, cols: u16) -> Self
pub fn saturating_left(self, cols: u16) -> Self
Trait Implementations§
Source§impl AsRangeString for Index
impl AsRangeString for Index
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.
impl Copy for Index
impl Eq for Index
impl StructuralPartialEq for Index
Auto Trait Implementations§
impl Freeze for Index
impl RefUnwindSafe for Index
impl Send for Index
impl Sync for Index
impl Unpin for Index
impl UnwindSafe for Index
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.