[][src]Struct weasel::space::Space

pub struct Space<R: BattleRules> { /* fields omitted */ }

This object takes care of everything related to space and movement in the battle.
It verifies the consistency of every entity's position.

Implementations

impl<R: BattleRules> Space<R>[src]

pub fn model(&self) -> &SpaceModel<R>[src]

Returns the space model. It stores all data needed to retrieve and compute the position of entities.

pub fn model_mut(&mut self) -> &mut SpaceModel<R>[src]

Returns a mutable reference to the space model.

pub fn rules(&self) -> &R::SR[src]

Returns this space's rules.

pub fn rules_mut(&mut self) -> &mut R::SR[src]

Returns a mutable reference to this space's rules.

Auto Trait Implementations

impl<R> RefUnwindSafe for Space<R> where
    <R as BattleRules>::SR: RefUnwindSafe,
    <<R as BattleRules>::SR as SpaceRules<R>>::SpaceModel: RefUnwindSafe

impl<R> Send for Space<R> where
    <R as BattleRules>::SR: Send,
    <<R as BattleRules>::SR as SpaceRules<R>>::SpaceModel: Send

impl<R> Sync for Space<R> where
    <R as BattleRules>::SR: Sync,
    <<R as BattleRules>::SR as SpaceRules<R>>::SpaceModel: Sync

impl<R> Unpin for Space<R> where
    <R as BattleRules>::SR: Unpin,
    <<R as BattleRules>::SR as SpaceRules<R>>::SpaceModel: Unpin

impl<R> UnwindSafe for Space<R> where
    <R as BattleRules>::SR: UnwindSafe,
    <<R as BattleRules>::SR as SpaceRules<R>>::SpaceModel: UnwindSafe

Blanket Implementations

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

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,