pub struct PathCalculator { /* private fields */ }Implementations§
Source§impl PathCalculator
impl PathCalculator
pub fn new(num_nodes: usize) -> Self
pub fn calc_path( &mut self, graph: &FastGraph, start: NodeId, end: NodeId, ) -> Option<ShortestPath>
pub fn calc_path_multiple_sources_and_targets( &mut self, graph: &FastGraph, starts: Vec<(NodeId, Weight)>, ends: Vec<(NodeId, Weight)>, ) -> Option<ShortestPath>
Auto Trait Implementations§
impl Freeze for PathCalculator
impl RefUnwindSafe for PathCalculator
impl Send for PathCalculator
impl Sync for PathCalculator
impl Unpin for PathCalculator
impl UnwindSafe for PathCalculator
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