[][src]Struct polyhorn_core::Memory

pub struct Memory { /* fields omitted */ }

Implementations

impl Memory[src]

pub fn new() -> Memory[src]

pub fn state(&self, id: usize) -> Ref<'_, dyn Any>[src]

pub fn state_mut(&self, id: usize) -> RefMut<'_, dyn Any>[src]

pub fn state_id<F, T>(&mut self, key: Key, initializer: F) -> usize where
    F: FnOnce() -> T,
    T: 'static, 
[src]

pub fn reference(&self, id: usize) -> Ref<'_, dyn Any>[src]

pub fn reference_mut(&self, id: usize) -> RefMut<'_, dyn Any>[src]

pub fn reference_id<F, T>(&mut self, key: Key, initializer: F) -> usize where
    F: FnOnce() -> T,
    T: 'static, 
[src]

pub fn effect(&mut self, key: Key, conditions: Key) -> bool[src]

pub fn future<F>(&mut self, key: Key, initializer: F) where
    F: FnOnce() -> Disposable
[src]

Auto Trait Implementations

impl !RefUnwindSafe for Memory

impl !Send for Memory

impl !Sync for Memory

impl Unpin for Memory

impl !UnwindSafe for Memory

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.