[][src]Trait totsu::matgen::MatView

pub trait MatView {
    type OwnColl: MatView;
    fn new_own(sz: usize) -> Self::OwnColl;
fn get_ref(&self) -> &Self::OwnColl;
fn get_mut(&mut self) -> &mut Self::OwnColl;
fn get_len(&self) -> usize;
fn get_own(self) -> Self::OwnColl;
fn is_own(&self) -> bool;
fn clone_own(&self) -> Self::OwnColl;
fn get_index(&self, i: usize) -> &FP;
fn get_index_mut(&mut self, i: usize) -> &mut FP;
fn get_iter<'a>(&'a self) -> Box<dyn Iterator<Item = (usize, &FP)> + 'a>;
fn get_iter_mut<'a>(
        &'a mut self
    ) -> Box<dyn Iterator<Item = (usize, &mut FP)> + 'a>; fn put(&mut self, i: usize, val: FP) { ... }
fn is_less(&self, _sz: (usize, usize)) -> bool { ... } }

Ownership view of matrix array entity

Associated Types

Loading content...

Required methods

fn new_own(sz: usize) -> Self::OwnColl

fn get_ref(&self) -> &Self::OwnColl

fn get_mut(&mut self) -> &mut Self::OwnColl

fn get_len(&self) -> usize

fn get_own(self) -> Self::OwnColl

fn is_own(&self) -> bool

fn clone_own(&self) -> Self::OwnColl

fn get_index(&self, i: usize) -> &FP

fn get_index_mut(&mut self, i: usize) -> &mut FP

fn get_iter<'a>(&'a self) -> Box<dyn Iterator<Item = (usize, &FP)> + 'a>

fn get_iter_mut<'a>(
    &'a mut self
) -> Box<dyn Iterator<Item = (usize, &mut FP)> + 'a>

Loading content...

Provided methods

fn put(&mut self, i: usize, val: FP)

fn is_less(&self, _sz: (usize, usize)) -> bool

Loading content...

Implementations on Foreign Types

impl MatView for Vec<FP>[src]

type OwnColl = Vec<FP>

fn put(&mut self, i: usize, val: FP)[src]

fn is_less(&self, _sz: (usize, usize)) -> bool[src]

impl<'_> MatView for &'_ Vec<FP>[src]

type OwnColl = Vec<FP>

fn put(&mut self, i: usize, val: FP)[src]

fn is_less(&self, _sz: (usize, usize)) -> bool[src]

impl<'_> MatView for &'_ mut Vec<FP>[src]

type OwnColl = Vec<FP>

fn put(&mut self, i: usize, val: FP)[src]

fn is_less(&self, _sz: (usize, usize)) -> bool[src]

impl MatView for BTreeMap<usize, FP>[src]

type OwnColl = BTreeMap<usize, FP>

impl<'_> MatView for &'_ BTreeMap<usize, FP>[src]

type OwnColl = BTreeMap<usize, FP>

impl<'_> MatView for &'_ mut BTreeMap<usize, FP>[src]

type OwnColl = BTreeMap<usize, FP>

Loading content...

Implementors

Loading content...