pub struct Accessibility<G: Grid> { /* private fields */ }Implementations§
Source§impl<G: Grid> Accessibility<G>
impl<G: Grid> Accessibility<G>
pub fn new(grid: G, agent_radius: f64) -> Self
pub fn iter_accessibility<'a>( &'a self, ) -> impl Iterator<Item = (&'a Cell, &'a CellAccessibility)>
pub fn grid(&self) -> &G
pub fn agent_radius(&self) -> f64
pub fn is_inaccessible(&self, cell: &Cell) -> bool
pub fn change_cells(&mut self, changes: HashMap<Cell, bool>) -> bool
pub fn change_agent_radius(&mut self, value: f64)
Trait Implementations§
Source§impl<G: Clone + Grid> Clone for Accessibility<G>
impl<G: Clone + Grid> Clone for Accessibility<G>
Source§fn clone(&self) -> Accessibility<G>
fn clone(&self) -> Accessibility<G>
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<G> Freeze for Accessibility<G>where
G: Freeze,
impl<G> RefUnwindSafe for Accessibility<G>where
G: RefUnwindSafe,
impl<G> Send for Accessibility<G>where
G: Send,
impl<G> Sync for Accessibility<G>where
G: Sync,
impl<G> Unpin for Accessibility<G>where
G: Unpin,
impl<G> UnwindSafe for Accessibility<G>where
G: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.