Enum grid_search::DistanceMapEntry
source · pub enum DistanceMapEntry<'a, Cost: 'a> {
Origin,
Unvisited,
Outside,
Cell(&'a DistanceMapCell<Cost>),
}
Variants
Origin
Unvisited
Outside
Cell(&'a DistanceMapCell<Cost>)
Implementations
sourceimpl<'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
sourceimpl<'a, Cost: Clone + 'a> Clone for DistanceMapEntry<'a, Cost>
impl<'a, Cost: Clone + 'a> Clone for DistanceMapEntry<'a, Cost>
sourcefn clone(&self) -> DistanceMapEntry<'a, Cost>
fn clone(&self) -> DistanceMapEntry<'a, Cost>
Returns a copy of the value. Read more
1.0.0 · sourcefn 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> 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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more