[−][src]Trait sprs::indexing::SpIndex
A sparse matrix index
This is a convenience trait to enable using various integer sizes for sparse matrix indices.
Required methods
fn index(self) -> usize
Convert to usize
Panics
If the integer cannot be represented as an usize
, eg negative numbers.
The panic happens in debug builds only.
fn from_usize(ind: usize) -> Self
Convert from usize
Panics
If the input overflows the index type. The panic happens in debug builds only.