pub struct HashMapStorage<K: OutputType + Eq + Hash> { /* private fields */ }Trait Implementations§
Source§impl<K: OutputType + Eq + Hash> Default for HashMapStorage<K>
impl<K: OutputType + Eq + Hash> Default for HashMapStorage<K>
Source§impl<'de, K> Deserialize<'de> for HashMapStorage<K>
impl<'de, K> Deserialize<'de> for HashMapStorage<K>
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<K> Serialize for HashMapStorage<K>
impl<K> Serialize for HashMapStorage<K>
Source§impl<K> StorageFor<K> for HashMapStorage<K>
impl<K> StorageFor<K> for HashMapStorage<K>
Source§fn get_cell_for_computation(&self, key: &K) -> Option<Cell>
fn get_cell_for_computation(&self, key: &K) -> Option<Cell>
Given a computation key, return the cell associated with it, if it exists.
Source§fn insert_new_cell(&self, cell: Cell, key: K)
fn insert_new_cell(&self, cell: Cell, key: K)
Insert a new Cell with the given computation that has yet to be run
Source§fn get_input(&self, cell: Cell) -> K
fn get_input(&self, cell: Cell) -> K
Retrieve the input for this computation.
The input is expected to already be inserted into this storage.
Auto Trait Implementations§
impl<K> !Freeze for HashMapStorage<K>
impl<K> RefUnwindSafe for HashMapStorage<K>
impl<K> Send for HashMapStorage<K>
impl<K> Sync for HashMapStorage<K>
impl<K> Unpin for HashMapStorage<K>
impl<K> UnwindSafe for HashMapStorage<K>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more