[][src]Struct rulinalg::matrix::ColumnMut

pub struct ColumnMut<'a, T: 'a> { /* fields omitted */ }

Mutable column of a matrix.

This struct points to a MatrixSliceMut making up a column in a matrix. You can deref this struct to retrieve the raw column MatrixSliceMut.

Example

use rulinalg::matrix::BaseMatrixMut;

let mut mat = matrix![1.0, 2.0;
                  3.0, 4.0];
{
    let mut column = mat.col_mut(1);
    *column += 2.0;
}
let expected = matrix![1.0, 4.0;
                       3.0, 6.0];
assert_matrix_eq!(mat, expected);

Methods from Deref<Target = MatrixSliceMut<'a, T>>

Trait Implementations

impl<'a, T> BaseMatrix<T> for ColumnMut<'a, T>[src]

impl<'a, T> BaseMatrixMut<T> for ColumnMut<'a, T>[src]

fn as_mut_ptr(&mut self) -> *mut T[src]

Top left index of the slice.

impl<'a, T: Clone> From<ColumnMut<'a, T>> for Vector<T>[src]

impl<'a, T: 'a> Deref for ColumnMut<'a, T>[src]

type Target = MatrixSliceMut<'a, T>

The resulting type after dereferencing.

impl<'a, T: 'a> DerefMut for ColumnMut<'a, T>[src]

impl<'a, T> Index<usize> for ColumnMut<'a, T>[src]

type Output = T

The returned type after indexing.

impl<'a, T> IndexMut<usize> for ColumnMut<'a, T>[src]

impl<'a, T: Debug + 'a> Debug for ColumnMut<'a, T>[src]

Auto Trait Implementations

impl<'a, T> !Sync for ColumnMut<'a, T>

impl<'a, T> !Send for ColumnMut<'a, T>

impl<'a, T> Unpin for ColumnMut<'a, T>

impl<'a, T> !UnwindSafe for ColumnMut<'a, T>

impl<'a, T> RefUnwindSafe for ColumnMut<'a, T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]