[][src]Struct rulinalg::matrix::Row

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

Row of a matrix.

This struct points to a slice making up a row in a matrix. You can deref this struct to retrieve a MatrixSlice of the row.

Example

use rulinalg::matrix::BaseMatrix;

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

let row = mat.row(1);
assert_eq!((*row + 2.0).sum(), 11.0);

Methods

impl<'a, T: 'a> Row<'a, T>[src]

pub fn raw_slice(&self) -> &'a [T][src]

Returns the row as a slice.

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

Trait Implementations

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

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

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

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

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

type Target = MatrixSlice<'a, T>

The resulting type after dereferencing.

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

type Output = T

The returned type after indexing.

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

impl<'a, T: 'a + Copy> FromIterator<Row<'a, T>> for Matrix<T>[src]

Auto Trait Implementations

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

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

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

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

impl<'a, T> RefUnwindSafe for Row<'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]