[−][src]Struct weasel::space::Space
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,
<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,
<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,
<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,
<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,
<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]
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,
pub 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.
pub 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,