pub struct ShortestPathCertificate {
pub source: usize,
pub predecessors: Vec<Option<usize>>,
}Expand description
A shortest-path tree witness from a single source.
Fields§
§source: usizeThe source node.
predecessors: Vec<Option<usize>>predecessors[v] is the node v was reached from (None for the source
and for unreachable nodes).
Trait Implementations§
Source§impl Clone for ShortestPathCertificate
impl Clone for ShortestPathCertificate
Source§fn clone(&self) -> ShortestPathCertificate
fn clone(&self) -> ShortestPathCertificate
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 Debug for ShortestPathCertificate
impl Debug for ShortestPathCertificate
impl Eq for ShortestPathCertificate
Source§impl PartialEq for ShortestPathCertificate
impl PartialEq for ShortestPathCertificate
impl StructuralPartialEq for ShortestPathCertificate
Auto Trait Implementations§
impl Freeze for ShortestPathCertificate
impl RefUnwindSafe for ShortestPathCertificate
impl Send for ShortestPathCertificate
impl Sync for ShortestPathCertificate
impl Unpin for ShortestPathCertificate
impl UnsafeUnpin for ShortestPathCertificate
impl UnwindSafe for ShortestPathCertificate
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