pub struct Map2<R: Eq + Hash, C: Eq + Hash, V> { /* private fields */ }
Implementations§
Source§impl<R, C, V> Map2<R, C, V>
impl<R, C, V> Map2<R, C, V>
pub fn new() -> Self
pub fn rows(&self) -> &SeqMap<R, SeqMap<C, V>>
pub fn columns(&self) -> &SeqMap<C, SeqMap<R, V>>
Sourcepub fn get(&self, col: &C, row: &R) -> Option<&V>
pub fn get(&self, col: &C, row: &R) -> Option<&V>
Returns a reference to the value at the given row and column.
Sourcepub fn get_row(&self, row: &R) -> Option<&SeqMap<C, V>>
pub fn get_row(&self, row: &R) -> Option<&SeqMap<C, V>>
Gets a reference to the row (i.e. all columns for that row).
Sourcepub fn get_column(&self, col: &C) -> Option<&SeqMap<R, V>>
pub fn get_column(&self, col: &C) -> Option<&SeqMap<R, V>>
Gets a reference to the column (i.e. all rows for that column).
pub fn has(&self, col: &C, row: &R) -> bool
Trait Implementations§
Auto Trait Implementations§
impl<R, C, V> Freeze for Map2<R, C, V>
impl<R, C, V> RefUnwindSafe for Map2<R, C, V>
impl<R, C, V> Send for Map2<R, C, V>
impl<R, C, V> Sync for Map2<R, C, V>
impl<R, C, V> Unpin for Map2<R, C, V>
impl<R, C, V> UnwindSafe for Map2<R, C, V>
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