pub struct SpanningTree<W> {
pub edges: Vec<usize>,
pub total_weight: W,
}Expand description
A spanning tree result: tree edge ids (ascending) and the total weight.
Fields§
§edges: Vec<usize>Edge ids forming the tree, sorted ascending.
total_weight: WSum of the tree edge weights.
Implementations§
Source§impl<W: Display> SpanningTree<W>
impl<W: Display> SpanningTree<W>
Sourcepub fn certificate(&self) -> MstCertificate
pub fn certificate(&self) -> MstCertificate
The certificate corresponding to this spanning tree.
Trait Implementations§
Source§impl<W: Clone> Clone for SpanningTree<W>
impl<W: Clone> Clone for SpanningTree<W>
Source§fn clone(&self) -> SpanningTree<W>
fn clone(&self) -> SpanningTree<W>
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<W: Debug> Debug for SpanningTree<W>
impl<W: Debug> Debug for SpanningTree<W>
impl<W: Eq> Eq for SpanningTree<W>
Source§impl<W: PartialEq> PartialEq for SpanningTree<W>
impl<W: PartialEq> PartialEq for SpanningTree<W>
Source§fn eq(&self, other: &SpanningTree<W>) -> bool
fn eq(&self, other: &SpanningTree<W>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<W: PartialEq> StructuralPartialEq for SpanningTree<W>
Auto Trait Implementations§
impl<W> Freeze for SpanningTree<W>where
W: Freeze,
impl<W> RefUnwindSafe for SpanningTree<W>where
W: RefUnwindSafe,
impl<W> Send for SpanningTree<W>where
W: Send,
impl<W> Sync for SpanningTree<W>where
W: Sync,
impl<W> Unpin for SpanningTree<W>where
W: Unpin,
impl<W> UnsafeUnpin for SpanningTree<W>where
W: UnsafeUnpin,
impl<W> UnwindSafe for SpanningTree<W>where
W: 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