pub struct Path {
pub from: String,
pub to: String,
pub nodes: Vec<String>,
pub steps: Vec<PathStep>,
pub hops: usize,
}Expand description
A shortest support/reduction path from from to to.
Fields§
§from: String§to: String§nodes: Vec<String>Node ids in order, from first and to last.
steps: Vec<PathStep>The edges traversed, one per hop.
hops: usizeNumber of edges (= nodes.len() - 1).
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Path
impl RefUnwindSafe for Path
impl Send for Path
impl Sync for Path
impl Unpin for Path
impl UnsafeUnpin for Path
impl UnwindSafe for Path
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