[−][src]Struct spatial_table::SpatialTable
Implementations
impl<L: Layers> SpatialTable<L>
[src]
pub fn new(size: Size) -> Self
[src]
pub fn enumerate(&self) -> Enumerate<L>
[src]
pub fn grid_size(&self) -> Size
[src]
pub fn layers_at(&self, coord: Coord) -> Option<&L>
[src]
pub fn layers_at_checked(&self, coord: Coord) -> &L
[src]
pub fn location_of(&self, entity: Entity) -> Option<&Location<L::Layer>>
[src]
pub fn coord_of(&self, entity: Entity) -> Option<Coord>
[src]
pub fn update(
&mut self,
entity: Entity,
location: Location<L::Layer>
) -> Result<(), UpdateError>
[src]
&mut self,
entity: Entity,
location: Location<L::Layer>
) -> Result<(), UpdateError>
pub fn update_coord(
&mut self,
entity: Entity,
coord: Coord
) -> Result<(), UpdateError>
[src]
&mut self,
entity: Entity,
coord: Coord
) -> Result<(), UpdateError>
pub fn remove(&mut self, entity: Entity)
[src]
Trait Implementations
Auto Trait Implementations
impl<L> RefUnwindSafe for SpatialTable<L> where
L: RefUnwindSafe,
<L as Layers>::Layer: RefUnwindSafe,
L: RefUnwindSafe,
<L as Layers>::Layer: RefUnwindSafe,
impl<L> Send for SpatialTable<L> where
L: Send,
<L as Layers>::Layer: Send,
L: Send,
<L as Layers>::Layer: Send,
impl<L> Sync for SpatialTable<L> where
L: Sync,
<L as Layers>::Layer: Sync,
L: Sync,
<L as Layers>::Layer: Sync,
impl<L> Unpin for SpatialTable<L> where
L: Unpin,
<L as Layers>::Layer: Unpin,
L: Unpin,
<L as Layers>::Layer: Unpin,
impl<L> UnwindSafe for SpatialTable<L> where
L: UnwindSafe,
<L as Layers>::Layer: UnwindSafe,
L: UnwindSafe,
<L as Layers>::Layer: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,