[][src]Struct gf::ai::state::SpaceStateMap

pub struct SpaceStateMap<'a, A, V, S> where
    V: Bottom
{ /* fields omitted */ }

🟢 Map-like structure for maintaining abstract state of all address spaces.

Implementations

impl<'a, A, V, S> SpaceStateMap<'a, A, V, S> where
    V: Bottom
[src]

pub fn new() -> Self[src]

Create an empty state map.

pub fn get(&self, space: Space<'a>) -> Option<&S>[src]

Return a shared reference to space state.

pub fn get_mut(&mut self, space: Space<'a>) -> Option<&mut S>[src]

Return a mutable reference to space state.

pub fn set(&mut self, space: Space<'a>, state: S)[src]

Set space state.

Trait Implementations

impl<'a, A, V, S> Clone for SpaceStateMap<'a, A, V, S> where
    V: Bottom,
    S: Clone
[src]

impl<'a, A, V, S> MultiConstSpaceState<'a, A, V> for SpaceStateMap<'a, A, V, S> where
    V: Bottom,
    S: ConstSpaceState<A, V>, 
[src]

impl<'a, A, V, S> MultiSpaceState<'a, A, V> for SpaceStateMap<'a, A, V, S> where
    V: Bottom,
    S: SpaceState<A, V>, 
[src]

Auto Trait Implementations

impl<'a, A, V, S> RefUnwindSafe for SpaceStateMap<'a, A, V, S> where
    A: RefUnwindSafe,
    S: RefUnwindSafe,
    V: RefUnwindSafe

impl<'a, A, V, S> Send for SpaceStateMap<'a, A, V, S> where
    A: Send,
    S: Send,
    V: Send

impl<'a, A, V, S> Sync for SpaceStateMap<'a, A, V, S> where
    A: Sync,
    S: Sync,
    V: Sync

impl<'a, A, V, S> Unpin for SpaceStateMap<'a, A, V, S> where
    A: Unpin,
    S: Unpin,
    V: Unpin

impl<'a, A, V, S> UnwindSafe for SpaceStateMap<'a, A, V, S> where
    A: UnwindSafe,
    S: UnwindSafe,
    V: 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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.