pub enum DistanceMapEntry<'a, Cost: 'a> {
Origin,
Unvisited,
Outside,
Cell(&'a DistanceMapCell<Cost>),
}Variants§
Implementations§
Source§impl<'a, Cost> DistanceMapEntry<'a, Cost>
impl<'a, Cost> DistanceMapEntry<'a, Cost>
pub fn cell(self) -> Option<&'a DistanceMapCell<Cost>>
pub fn is_origin(self) -> bool
pub fn is_unvisited(self) -> bool
pub fn is_outside(self) -> bool
Trait Implementations§
Source§impl<'a, Cost: Clone + 'a> Clone for DistanceMapEntry<'a, Cost>
impl<'a, Cost: Clone + 'a> Clone for DistanceMapEntry<'a, Cost>
Source§fn clone(&self) -> DistanceMapEntry<'a, Cost>
fn clone(&self) -> DistanceMapEntry<'a, Cost>
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 moreAuto Trait Implementations§
impl<'a, Cost> Freeze for DistanceMapEntry<'a, Cost>
impl<'a, Cost> RefUnwindSafe for DistanceMapEntry<'a, Cost>where
Cost: RefUnwindSafe,
impl<'a, Cost> Send for DistanceMapEntry<'a, Cost>where
Cost: Sync,
impl<'a, Cost> Sync for DistanceMapEntry<'a, Cost>where
Cost: Sync,
impl<'a, Cost> Unpin for DistanceMapEntry<'a, Cost>
impl<'a, Cost> UnwindSafe for DistanceMapEntry<'a, Cost>where
Cost: RefUnwindSafe,
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