pub struct SpanningForest<Edge> { /* private fields */ }Implementations§
Source§impl<Edge> SpanningForest<Edge>
impl<Edge> SpanningForest<Edge>
pub fn edges(&self) -> &[Edge]
pub const fn total_weight(&self) -> u128
pub const fn component_count(&self) -> usize
pub fn into_edges(self) -> Vec<Edge>
Trait Implementations§
Source§impl<Edge: Clone> Clone for SpanningForest<Edge>
impl<Edge: Clone> Clone for SpanningForest<Edge>
Source§fn clone(&self) -> SpanningForest<Edge>
fn clone(&self) -> SpanningForest<Edge>
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 moreSource§impl<Edge: Debug> Debug for SpanningForest<Edge>
impl<Edge: Debug> Debug for SpanningForest<Edge>
impl<Edge: Eq> Eq for SpanningForest<Edge>
Source§impl<Edge: PartialEq> PartialEq for SpanningForest<Edge>
impl<Edge: PartialEq> PartialEq for SpanningForest<Edge>
impl<Edge: PartialEq> StructuralPartialEq for SpanningForest<Edge>
Auto Trait Implementations§
impl<Edge> Freeze for SpanningForest<Edge>
impl<Edge> RefUnwindSafe for SpanningForest<Edge>where
Edge: RefUnwindSafe,
impl<Edge> Send for SpanningForest<Edge>where
Edge: Send,
impl<Edge> Sync for SpanningForest<Edge>where
Edge: Sync,
impl<Edge> Unpin for SpanningForest<Edge>where
Edge: Unpin,
impl<Edge> UnsafeUnpin for SpanningForest<Edge>
impl<Edge> UnwindSafe for SpanningForest<Edge>where
Edge: 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