Struct sprs::vec::NnzIndex [−][src]
pub struct NnzIndex(pub usize);
Hold the index of a non-zero element in the compressed storage
An NnzIndex can be used to later access the non-zero element in constant time.
Trait Implementations
impl Clone for NnzIndex
[src]
impl Clone for NnzIndex
fn clone(&self) -> NnzIndex
[src]
fn clone(&self) -> NnzIndex
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for NnzIndex
[src]
impl Copy for NnzIndex
impl PartialEq for NnzIndex
[src]
impl PartialEq for NnzIndex
fn eq(&self, other: &NnzIndex) -> bool
[src]
fn eq(&self, other: &NnzIndex) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &NnzIndex) -> bool
[src]
fn ne(&self, other: &NnzIndex) -> bool
This method tests for !=
.
impl Eq for NnzIndex
[src]
impl Eq for NnzIndex
impl Debug for NnzIndex
[src]
impl Debug for NnzIndex
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl<N, IS, DS> Index<NnzIndex> for CsVecBase<IS, DS> where
IS: Deref<Target = [usize]>,
DS: Deref<Target = [N]>,
[src]
impl<N, IS, DS> Index<NnzIndex> for CsVecBase<IS, DS> where
IS: Deref<Target = [usize]>,
DS: Deref<Target = [N]>,
type Output = N
The returned type after indexing.
fn index(&self, index: NnzIndex) -> &N
[src]
fn index(&self, index: NnzIndex) -> &N
Performs the indexing (container[index]
) operation.
impl<N, IS, DS> IndexMut<NnzIndex> for CsVecBase<IS, DS> where
IS: Deref<Target = [usize]>,
DS: DerefMut<Target = [N]>,
[src]
impl<N, IS, DS> IndexMut<NnzIndex> for CsVecBase<IS, DS> where
IS: Deref<Target = [usize]>,
DS: DerefMut<Target = [N]>,