[−][src]Struct gf::ai::state::SpaceStateMap
🟢 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]
V: Bottom,
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]
V: Bottom,
S: Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'a, A, V, S> MultiConstSpaceState<'a, A, V> for SpaceStateMap<'a, A, V, S> where
V: Bottom,
S: ConstSpaceState<A, V>,
[src]
V: Bottom,
S: ConstSpaceState<A, V>,
fn load(&mut self, elt: SpaceElt<'a, A>) -> (V, V)
[src]
fn load_result(&mut self, elt: SpaceElt<'a, A>) -> Result<V, 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]
V: Bottom,
S: SpaceState<A, V>,
Auto Trait Implementations
impl<'a, A, V, S> RefUnwindSafe for SpaceStateMap<'a, A, V, S> where
A: RefUnwindSafe,
S: RefUnwindSafe,
V: RefUnwindSafe,
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,
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,
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,
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,
A: UnwindSafe,
S: UnwindSafe,
V: 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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,