[][src]Struct spatial_table::SpatialTable

pub struct SpatialTable<L: Layers> { /* fields omitted */ }


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>

pub fn update_coord(
    &mut self,
    entity: Entity,
    coord: Coord
) -> Result<(), UpdateError>

pub fn remove(&mut self, entity: Entity)[src]

Trait Implementations

impl<L: Debug + Layers> Debug for SpatialTable<L> where
    L::Layer: Debug

Auto Trait Implementations

impl<L> RefUnwindSafe for SpatialTable<L> where
    L: RefUnwindSafe,
    <L as Layers>::Layer: RefUnwindSafe

impl<L> Send for SpatialTable<L> where
    L: Send,
    <L as Layers>::Layer: Send

impl<L> Sync for SpatialTable<L> where
    L: Sync,
    <L as Layers>::Layer: Sync

impl<L> Unpin for SpatialTable<L> where
    L: Unpin,
    <L as Layers>::Layer: Unpin

impl<L> UnwindSafe for SpatialTable<L> where
    L: UnwindSafe,
    <L as Layers>::Layer: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.