Struct ratio_matrix::MatrixCellRef
source · 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 copy 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<'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>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)