pub enum SparseMatType {
Triplet,
ColumnCompressed,
}Expand description
Storage format of a SparseMat (igraph_sparsemat_type_t).
Variants§
Triplet
Triplet (coordinate) format: easy to build, see SparseMat::entry.
ColumnCompressed
Column-compressed format: the one used for computations.
Trait Implementations§
Source§impl Clone for SparseMatType
impl Clone for SparseMatType
Source§fn clone(&self) -> SparseMatType
fn clone(&self) -> SparseMatType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SparseMatType
Source§impl Debug for SparseMatType
impl Debug for SparseMatType
impl Eq for SparseMatType
Source§impl From<SparseMatType> for igraph_sparsemat_type_t
impl From<SparseMatType> for igraph_sparsemat_type_t
Source§fn from(value: SparseMatType) -> igraph_sparsemat_type_t
fn from(value: SparseMatType) -> igraph_sparsemat_type_t
Converts to this type from the input type.
Source§impl Hash for SparseMatType
impl Hash for SparseMatType
Source§impl PartialEq for SparseMatType
impl PartialEq for SparseMatType
Source§fn eq(&self, other: &SparseMatType) -> bool
fn eq(&self, other: &SparseMatType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SparseMatType
Auto Trait Implementations§
impl Freeze for SparseMatType
impl RefUnwindSafe for SparseMatType
impl Send for SparseMatType
impl Sync for SparseMatType
impl Unpin for SparseMatType
impl UnsafeUnpin for SparseMatType
impl UnwindSafe for SparseMatType
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