pub struct Reference {
pub start_cell: Cell,
pub end_cell: Option<Cell>,
}
Fields§
§start_cell: Cell
§end_cell: Option<Cell>
Implementations§
Source§impl Reference
impl Reference
pub fn row(&self) -> usize
pub fn column(&self) -> usize
pub fn is_single_cell(&self) -> bool
pub fn is_multi_cell(&self) -> bool
pub fn is_hrange(&self) -> bool
pub fn is_vrange(&self) -> bool
pub fn num_rows(&self) -> usize
pub fn num_cols(&self) -> usize
pub fn get_dimensions(&self) -> (usize, usize, usize, usize)
pub fn get_cells_from_dim( start_row: usize, start_column: usize, num_rows: usize, num_cols: usize, ) -> Vec<(usize, usize)>
pub fn get_cells(&self) -> Vec<(usize, usize)>
pub fn offset(&mut self, offset: (i32, i32))
Trait Implementations§
Source§impl Ord for Reference
impl Ord for Reference
Source§impl PartialOrd for Reference
impl PartialOrd for Reference
impl Copy for Reference
impl Eq for Reference
Auto Trait Implementations§
impl Freeze for Reference
impl RefUnwindSafe for Reference
impl Send for Reference
impl Sync for Reference
impl Unpin for Reference
impl UnwindSafe for Reference
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.