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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for NnzIndex
[src]

impl PartialEq for NnzIndex
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for NnzIndex
[src]

impl Debug for NnzIndex
[src]

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]

The returned type after indexing.

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]

Performs the mutable indexing (container[index]) operation.

Auto Trait Implementations

impl Send for NnzIndex

impl Sync for NnzIndex