[][src]Struct mop_blocks::dr_matrix::DrMatrixRowsConstructor

pub struct DrMatrixRowsConstructor<'a, DS> { /* fields omitted */ }

Constructs a new valid row in a easy and interactive manner.

This struct may panic when out of scope. Please see the Drop documentation in the Trait Implementations section for more information. #[derive(Debug, PartialEq)]

Implementations

impl<'a, DATA, DS> DrMatrixRowsConstructor<'a, DS> where
    DS: Storage<Item = DATA>, 
[src]

pub fn fill_row(self, elem: DATA) -> Self where
    DATA: Clone,
    DS: Extend<DATA>, 
[src]

pub fn fill_rows(self, rows: usize, elem: DATA) -> Self where
    DATA: Clone,
    DS: Extend<DATA>, 
[src]

pub fn matrix_ref(self, other: DrMatrixRef<DATA>) -> Option<Self> where
    DATA: Clone,
    DS: Extend<DATA>, 
[src]

pub fn row_iter<I>(self, i: I) -> Option<Self> where
    DATA: Default,
    DS: Extend<DATA> + Length<Output = usize>,
    I: Iterator<Item = DATA>, 
[src]

pub fn row_slice(self, row: &[DS::Item]) -> Option<Self> where
    DS::Item: Clone,
    DS: Extend<DATA>, 
[src]

Clones all values of row into the current row.

Example

use mop_blocks::{doc_tests::capacited_dr_matrix_vec, dr_matrix::DrMatrixRef};
let mut a = capacited_dr_matrix_vec();
a.constructor().row_slice(&[1, 2, 3, 4, 5]);
assert_eq!(Ok(a.as_ref()), DrMatrixRef::new(1, 5, &[1, 2, 3, 4, 5][..]));

Trait Implementations

impl<'a, DS: Debug> Debug for DrMatrixRowsConstructor<'a, DS>[src]

impl<'a, DS: PartialEq> PartialEq<DrMatrixRowsConstructor<'a, DS>> for DrMatrixRowsConstructor<'a, DS>[src]

impl<'a, DS> StructuralPartialEq for DrMatrixRowsConstructor<'a, DS>[src]

Auto Trait Implementations

impl<'a, DS> Send for DrMatrixRowsConstructor<'a, DS> where
    DS: Send

impl<'a, DS> Sync for DrMatrixRowsConstructor<'a, DS> where
    DS: Sync

impl<'a, DS> Unpin for DrMatrixRowsConstructor<'a, DS>

Blanket Implementations

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

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

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

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

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

impl<T> TraitCfg 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.