pub struct Css<DS, IS> { /* private fields */ }Expand description
Compressed Sparse Storage.
This struct represents a single sparse row, thtoUses the same logic and storage of a CSR Matrix without rows/pointers.
Implementations§
Source§impl<DS, IS> Css<DS, IS>
impl<DS, IS> Css<DS, IS>
pub fn as_mut_slice(&mut self) -> CssSliceMut<'_, DS::Item>
pub fn data_mut(&mut self) -> &mut [DS::Item]
pub fn get_mut(&mut self, idx: usize) -> Option<&mut DS::Item>
pub fn iter_mut(&mut self) -> impl Iterator<Item = (usize, &mut DS::Item)>
pub fn split_at_mut( &mut self, idx: usize, ) -> (CssSliceMut<'_, DS::Item>, CssSliceMut<'_, DS::Item>)
pub fn swap(&mut self, a: usize, b: usize)
Source§impl<DS, IS> Css<DS, IS>where
DS: DynDenseStoRef,
impl<DS, IS> Css<DS, IS>where
DS: DynDenseStoRef,
pub fn nnz_capacity(&self) -> usize
Trait Implementations§
Source§impl<'de, DS, IS> Deserialize<'de> for Css<DS, IS>where
DS: Deserialize<'de>,
IS: Deserialize<'de>,
impl<'de, DS, IS> Deserialize<'de> for Css<DS, IS>where
DS: Deserialize<'de>,
IS: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<DS: PartialOrd, IS: PartialOrd> PartialOrd for Css<DS, IS>
impl<DS: PartialOrd, IS: PartialOrd> PartialOrd for Css<DS, IS>
impl<DS: Copy, IS: Copy> Copy for Css<DS, IS>
impl<DS, IS> StructuralPartialEq for Css<DS, IS>
Auto Trait Implementations§
impl<DS, IS> Freeze for Css<DS, IS>
impl<DS, IS> RefUnwindSafe for Css<DS, IS>where
DS: RefUnwindSafe,
IS: RefUnwindSafe,
impl<DS, IS> Send for Css<DS, IS>
impl<DS, IS> Sync for Css<DS, IS>
impl<DS, IS> Unpin for Css<DS, IS>
impl<DS, IS> UnwindSafe for Css<DS, IS>where
DS: UnwindSafe,
IS: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more