[−][src]Struct mop_blocks::dr_matrix::DrMatrixRowsConstructor
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]
DS: Storage<Item = DATA>,
pub fn fill_row(self, elem: DATA) -> Self where
DATA: Clone,
DS: Extend<DATA>, [src]
DATA: Clone,
DS: Extend<DATA>,
pub fn fill_rows(self, rows: usize, elem: DATA) -> Self where
DATA: Clone,
DS: Extend<DATA>, [src]
DATA: Clone,
DS: Extend<DATA>,
pub fn matrix_ref(self, other: DrMatrixRef<DATA>) -> Option<Self> where
DATA: Clone,
DS: Extend<DATA>, [src]
DATA: Clone,
DS: Extend<DATA>,
pub fn row_iter<I>(self, i: I) -> Option<Self> where
DATA: Default,
DS: Extend<DATA> + Length<Output = usize>,
I: Iterator<Item = DATA>, [src]
DATA: Default,
DS: Extend<DATA> + Length<Output = usize>,
I: Iterator<Item = DATA>,
pub fn row_slice(self, row: &[DS::Item]) -> Option<Self> where
DS::Item: Clone,
DS: Extend<DATA>, [src]
DS::Item: Clone,
DS: Extend<DATA>,
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]
fn eq(&self, other: &DrMatrixRowsConstructor<'a, DS>) -> bool[src]
fn ne(&self, other: &DrMatrixRowsConstructor<'a, DS>) -> bool[src]
impl<'a, DS> StructuralPartialEq for DrMatrixRowsConstructor<'a, DS>[src]
Auto Trait Implementations
impl<'a, DS> Send for DrMatrixRowsConstructor<'a, DS> where
DS: Send,
DS: Send,
impl<'a, DS> Sync for DrMatrixRowsConstructor<'a, DS> where
DS: Sync,
DS: Sync,
impl<'a, DS> Unpin for DrMatrixRowsConstructor<'a, DS>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> TraitCfg for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,