[][src]Struct mop_structs::vec::css::Css

pub struct Css<DS, IS> { /* fields omitted */ }

Compressed Sparse Storage.

This struct represents a single sparse row, thtoUses the same logic and storage of a CSR Matrix without rows/pointers.

Methods

impl<DS, IS> Css<DS, IS>[src]

pub fn new(len: usize, data: DS, indcs: IS) -> Self[src]

pub fn len(&self) -> usize[src]

The length of the vector.

Examples

use mop_structs::doc_tests::css_array;
assert_eq!(css_array().len(), 10);

impl<DS, IS> Css<DS, IS> where
    DS: StDenseStoRef,
    IS: StDenseStoRef<Item = usize>, 
[src]

pub fn as_ref(&self) -> CssSlice<DS::Item>[src]

pub fn data(&self) -> &[DS::Item][src]

pub fn get(&self, idx: usize) -> Option<&DS::Item>[src]

pub fn indcs(&self) -> &[usize][src]

pub fn iter(
    &self
) -> impl Iterator<Item = (usize, &DS::Item)>
[src]

pub fn nnz(&self) -> usize[src]

impl<DS, IS> Css<DS, IS> where
    DS: StDenseStoMut,
    IS: StDenseStoRef<Item = usize>, 
[src]

pub fn as_mut_slice(&mut self) -> CssSliceMut<DS::Item>[src]

pub fn data_mut(&mut self) -> &mut [DS::Item][src]

pub fn get_mut(&mut self, idx: usize) -> Option<&mut DS::Item>[src]

pub fn iter_mut(
    &mut self
) -> impl Iterator<Item = (usize, &mut DS::Item)>
[src]

pub fn split_at_mut(
    &mut self,
    idx: usize
) -> (CssSliceMut<DS::Item>, CssSliceMut<DS::Item>)
[src]

pub fn swap(&mut self, a: usize, b: usize)[src]

impl<DS, IS> Css<DS, IS> where
    DS: DynDenseStoRef
[src]

pub fn nnz_capacity(&self) -> usize[src]

impl<DS, IS> Css<DS, IS> where
    DS: DynDenseStoMut,
    IS: DynDenseStoMut<Item = usize>, 
[src]

pub fn clear(&mut self)[src]

pub fn extend(&mut self, other: &Self) where
    DS::Item: Copy
[src]

pub fn set(&mut self, idx: usize, data: DS::Item)[src]

pub fn truncate(&mut self, until_idx: usize)[src]

Trait Implementations

impl<DS: Default, IS: Default> Default for Css<DS, IS>[src]

impl<DS: Clone, IS: Clone> Clone for Css<DS, IS>[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<DS: Copy, IS: Copy> Copy for Css<DS, IS>[src]

impl<DS: PartialOrd, IS: PartialOrd> PartialOrd<Css<DS, IS>> for Css<DS, IS>[src]

impl<DS: PartialEq, IS: PartialEq> PartialEq<Css<DS, IS>> for Css<DS, IS>[src]

impl<DS: Debug, IS: Debug> Debug for Css<DS, IS>[src]

impl<DS: Hash, IS: Hash> Hash for Css<DS, IS>[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl<DS, IS> Serialize for Css<DS, IS> where
    DS: Serialize,
    IS: Serialize
[src]

impl<'de, DS, IS> Deserialize<'de> for Css<DS, IS> where
    DS: Deserialize<'de>,
    IS: Deserialize<'de>, 
[src]

Auto Trait Implementations

impl<DS, IS> Send for Css<DS, IS> where
    DS: Send,
    IS: Send

impl<DS, IS> Sync for Css<DS, IS> where
    DS: Sync,
    IS: Sync

Blanket Implementations

impl<T> From for T[src]

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

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

type Owned = T

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

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

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

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

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

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]