[−][src]Struct mop_structs::vec::css::Css
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]
DS: StDenseStoRef,
IS: StDenseStoRef<Item = usize>,
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]
&self
) -> impl Iterator<Item = (usize, &DS::Item)>
pub fn nnz(&self) -> usize[src]
impl<DS, IS> Css<DS, IS> where
DS: StDenseStoMut,
IS: StDenseStoRef<Item = usize>, [src]
DS: StDenseStoMut,
IS: StDenseStoRef<Item = usize>,
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]
&mut self
) -> impl Iterator<Item = (usize, &mut DS::Item)>
pub fn split_at_mut(
&mut self,
idx: usize
) -> (CssSliceMut<DS::Item>, CssSliceMut<DS::Item>)[src]
&mut self,
idx: usize
) -> (CssSliceMut<DS::Item>, CssSliceMut<DS::Item>)
pub fn swap(&mut self, a: usize, b: usize)[src]
impl<DS, IS> Css<DS, IS> where
DS: DynDenseStoRef, [src]
DS: DynDenseStoRef,
pub fn nnz_capacity(&self) -> usize[src]
impl<DS, IS> Css<DS, IS> where
DS: DynDenseStoMut,
IS: DynDenseStoMut<Item = usize>, [src]
DS: DynDenseStoMut,
IS: DynDenseStoMut<Item = usize>,
pub fn clear(&mut self)[src]
pub fn extend(&mut self, other: &Self) where
DS::Item: Copy, [src]
DS::Item: Copy,
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(&self) -> 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]
fn partial_cmp(&self, other: &Css<DS, IS>) -> Option<Ordering>[src]
fn lt(&self, other: &Css<DS, IS>) -> bool[src]
fn le(&self, other: &Css<DS, IS>) -> bool[src]
fn gt(&self, other: &Css<DS, IS>) -> bool[src]
fn ge(&self, other: &Css<DS, IS>) -> bool[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<__HDSIS: Hasher>(&self, state: &mut __HDSIS)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
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]
DS: Serialize,
IS: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl<'de, DS, IS> Deserialize<'de> for Css<DS, IS> where
DS: Deserialize<'de>,
IS: Deserialize<'de>, [src]
DS: Deserialize<'de>,
IS: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<DS, IS> Send for Css<DS, IS> where
DS: Send,
IS: Send,
DS: Send,
IS: Send,
impl<DS, IS> Sync for Css<DS, IS> where
DS: Sync,
IS: Sync,
DS: Sync,
IS: Sync,
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from)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> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,