pub struct Matrix(/* private fields */);
Expand description
A matrix.
Implementations§
Source§impl Matrix
impl Matrix
pub fn height(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn iter(&self) -> impl Iterator<Item = &Vector>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut Vector>
pub fn len(&self) -> usize
pub fn transpose(&self) -> Self
pub fn width(&self) -> usize
pub fn zero(height: usize, width: usize) -> Self
Trait Implementations§
Source§impl FromIterator<Vector> for Matrix
impl FromIterator<Vector> for Matrix
Source§impl IntoIterator for Matrix
impl IntoIterator for Matrix
impl StructuralPartialEq for Matrix
Auto Trait Implementations§
impl Freeze for Matrix
impl RefUnwindSafe for Matrix
impl Send for Matrix
impl Sync for Matrix
impl Unpin for Matrix
impl UnwindSafe for Matrix
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