pub struct DtNodeQueue { /* private fields */ }Expand description
Index-based priority queue for nodes during pathfinding.
Stores indices into a DtNodePool rather than raw pointers.
The pool must be passed to operations that need to read node data.
Implementations§
Source§impl DtNodeQueue
impl DtNodeQueue
pub fn clear(&mut self)
pub fn pop(&mut self, pool: &DtNodePool) -> Option<usize>
pub fn push(&mut self, node_idx: usize, pool: &DtNodePool)
Sourcepub fn modify(&mut self, node_idx: usize, pool: &DtNodePool)
pub fn modify(&mut self, node_idx: usize, pool: &DtNodePool)
Re-sorts a node after its cost has changed.
pub fn empty(&self) -> bool
pub fn get_mem_used(&self) -> usize
pub fn get_capacity(&self) -> usize
Auto Trait Implementations§
impl Freeze for DtNodeQueue
impl RefUnwindSafe for DtNodeQueue
impl Send for DtNodeQueue
impl Sync for DtNodeQueue
impl Unpin for DtNodeQueue
impl UnsafeUnpin for DtNodeQueue
impl UnwindSafe for DtNodeQueue
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