Struct fast_paths::ShortestPath
source · 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 copy 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
source§fn eq(&self, other: &ShortestPath) -> bool
fn eq(&self, other: &ShortestPath) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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