pub struct SparseGraph {
pub v: Vec<usize>,
pub d: Vec<c_int>,
pub e: Vec<c_int>,
}Expand description
Sparse graph with allocated memory
Fields§
§v: Vec<usize>§d: Vec<c_int>§e: Vec<c_int>Implementations§
Trait Implementations§
Source§impl Clone for SparseGraph
impl Clone for SparseGraph
Source§fn clone(&self) -> SparseGraph
fn clone(&self) -> SparseGraph
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SparseGraph
impl Debug for SparseGraph
Source§impl Default for SparseGraph
impl Default for SparseGraph
Source§fn default() -> SparseGraph
fn default() -> SparseGraph
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a mut SparseGraph> for sparsegraph
impl<'a> From<&'a mut SparseGraph> for sparsegraph
Source§fn from(g: &'a mut SparseGraph) -> Self
fn from(g: &'a mut SparseGraph) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SparseGraph
impl RefUnwindSafe for SparseGraph
impl Send for SparseGraph
impl Sync for SparseGraph
impl Unpin for SparseGraph
impl UnwindSafe for SparseGraph
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