pub struct ContractionHierarchy { /* private fields */ }Implementations§
Source§impl ContractionHierarchy
impl ContractionHierarchy
pub fn new(nodes: &[Node], edges: &[InitEdge], max_speed: f32) -> Self
pub fn distance(&self, start: NodeIdx, target: NodeIdx) -> Option<f32>
pub fn route(&self, start: NodeIdx, target: NodeIdx) -> Option<Route>
pub fn node_count(&self) -> u32
pub fn create_hot_group(&self, nodes: &[NodeIdx]) -> HotGroup
Auto Trait Implementations§
impl Freeze for ContractionHierarchy
impl RefUnwindSafe for ContractionHierarchy
impl Send for ContractionHierarchy
impl Sync for ContractionHierarchy
impl Unpin for ContractionHierarchy
impl UnwindSafe for ContractionHierarchy
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