Struct adjacency_matrix::StaticUndirected
source · pub struct StaticUndirected<V = (), E = ()> { /* private fields */ }
Implementations§
source§impl<V, E> StaticUndirected<V, E>
impl<V, E> StaticUndirected<V, E>
pub fn max_degree(&self) -> usize
pub fn min_degree(&self) -> usize
source§impl<V, E> StaticUndirected<V, E>where
V: Default,
E: Default,
impl<V, E> StaticUndirected<V, E>where V: Default, E: Default,
pub fn new(size: usize) -> Self
pub fn get_node(&self, index: usize) -> GraphResult<&V>
pub fn set_node<F>(&mut self, index: usize, edit: F) -> GraphResult<()>where F: Fn(&mut V),
pub fn get_edge<T>(&self, undirected: T) -> GraphResult<&E>where T: Into<UndirectedEdge>,
pub fn set_edge<T, F>(&mut self, undirected: T, edit: F) -> GraphResult<usize>where T: Into<UndirectedEdge>, F: Fn(&mut AdjacencyEdge<E>),
pub fn connect<T>(&mut self, edge: T) -> GraphResult<usize>where T: Into<UndirectedEdge>,
pub fn disconnect<T>(&mut self, edge: T) -> GraphResult<usize>where T: Into<UndirectedEdge>,
Trait Implementations§
source§impl<V: Clone, E: Clone> Clone for StaticUndirected<V, E>
impl<V: Clone, E: Clone> Clone for StaticUndirected<V, E>
source§fn clone(&self) -> StaticUndirected<V, E>
fn clone(&self) -> StaticUndirected<V, E>
Returns a copy 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 moreAuto Trait Implementations§
impl<V, E> RefUnwindSafe for StaticUndirected<V, E>where E: RefUnwindSafe, V: RefUnwindSafe,
impl<V, E> Send for StaticUndirected<V, E>where E: Send, V: Send,
impl<V, E> Sync for StaticUndirected<V, E>where E: Sync, V: Sync,
impl<V, E> Unpin for StaticUndirected<V, E>where E: Unpin, V: Unpin,
impl<V, E> UnwindSafe for StaticUndirected<V, E>where E: UnwindSafe, V: UnwindSafe,
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