[][src]Struct rulinalg::matrix::Column

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

Column of a matrix.

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

Example

use rulinalg::matrix::BaseMatrix;

let mat = matrix![1.0, 2.0;
                  3.0, 4.0];

let col = mat.col(1);
assert_eq!((*col + 2.0).sum(), 10.0);

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

Trait Implementations

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

impl<'a, T: Clone + 'a> Clone for Column<'a, T>[src]

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

impl<'a, T: Copy + 'a> Copy for Column<'a, T>[src]

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

type Target = MatrixSlice<'a, T>

The resulting type after dereferencing.

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

type Output = T

The returned type after indexing.

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

Auto Trait Implementations

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

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

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

impl<'a, T> UnwindSafe for Column<'a, T> where
    T: RefUnwindSafe

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

Blanket Implementations

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]