pub struct MatrixCellRef<'a, M: MatrixRef<C> + ?Sized, C> {
pub matrix: &'a M,
pub coordinates: MatrixCoordinates,
/* private fields */
}
Expand description
Matrix cell.
Fields§
§matrix: &'a M
Matrix to pull values from.
coordinates: MatrixCoordinates
Coordinates of this cell.
Implementations§
Source§impl<'a, M: MatrixRef<C> + ?Sized, C> MatrixCellRef<'a, M, C>
impl<'a, M: MatrixRef<C> + ?Sized, C> MatrixCellRef<'a, M, C>
Sourcepub fn new<T: Into<MatrixCoordinates>>(matrix: &'a M, coordinates: T) -> Self
pub fn new<T: Into<MatrixCoordinates>>(matrix: &'a M, coordinates: T) -> Self
Create a new cell reference using the given coordinates.
Trait Implementations§
Source§impl<'a, M: Clone + MatrixRef<C> + ?Sized, C: Clone> Clone for MatrixCellRef<'a, M, C>
impl<'a, M: Clone + MatrixRef<C> + ?Sized, C: Clone> Clone for MatrixCellRef<'a, M, C>
Source§fn clone(&self) -> MatrixCellRef<'a, M, C>
fn clone(&self) -> MatrixCellRef<'a, M, C>
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'a, M: PartialEq + MatrixRef<C> + ?Sized, C: PartialEq> PartialEq for MatrixCellRef<'a, M, C>
impl<'a, M: PartialEq + MatrixRef<C> + ?Sized, C: PartialEq> PartialEq for MatrixCellRef<'a, M, C>
Source§fn eq(&self, other: &MatrixCellRef<'a, M, C>) -> bool
fn eq(&self, other: &MatrixCellRef<'a, M, C>) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl<'a, M: MatrixRef<C> + ?Sized, C> StructuralPartialEq for MatrixCellRef<'a, M, C>
Auto Trait Implementations§
impl<'a, M, C> Freeze for MatrixCellRef<'a, M, C>where
M: ?Sized,
impl<'a, M, C> RefUnwindSafe for MatrixCellRef<'a, M, C>
impl<'a, M, C> Send for MatrixCellRef<'a, M, C>
impl<'a, M, C> Sync for MatrixCellRef<'a, M, C>
impl<'a, M, C> Unpin for MatrixCellRef<'a, M, C>
impl<'a, M, C> UnwindSafe for MatrixCellRef<'a, M, C>
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