pub struct ShortestPath { /* private fields */ }Implementations§
Source§impl ShortestPath
impl ShortestPath
pub fn new( source: NodeId, target: NodeId, weight: Weight, nodes: Vec<NodeId>, ) -> Self
pub fn singular(node: NodeId) -> Self
pub fn none(source: NodeId, target: NodeId) -> Self
pub fn get_source(&self) -> NodeId
pub fn get_target(&self) -> NodeId
pub fn get_weight(&self) -> Weight
pub fn get_nodes(&self) -> &Vec<NodeId> ⓘ
pub fn is_found(&self) -> bool
Trait Implementations§
Source§impl Clone for ShortestPath
impl Clone for ShortestPath
Source§fn clone(&self) -> ShortestPath
fn clone(&self) -> ShortestPath
Returns a duplicate 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 moreSource§impl Debug for ShortestPath
impl Debug for ShortestPath
Source§impl PartialEq for ShortestPath
impl PartialEq for ShortestPath
Auto Trait Implementations§
impl Freeze for ShortestPath
impl RefUnwindSafe for ShortestPath
impl Send for ShortestPath
impl Sync for ShortestPath
impl Unpin for ShortestPath
impl UnwindSafe for ShortestPath
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