pub struct TreeIndexStorage<K: OutputType> { /* private fields */ }Expand description
TreeIndexStorage is backed internally by a scc::TreeIndex,
a type optimized for read-heavy workloads. See scc’s documentation
for performance details.
Trait Implementations§
Source§impl<K: OutputType> Default for TreeIndexStorage<K>
impl<K: OutputType> Default for TreeIndexStorage<K>
Source§impl<'de, K> Deserialize<'de> for TreeIndexStorage<K>where
K: Deserialize<'de> + Ord + OutputType + Clone + 'static,
K::Output: Deserialize<'de> + Clone,
impl<'de, K> Deserialize<'de> for TreeIndexStorage<K>where
K: Deserialize<'de> + Ord + OutputType + Clone + 'static,
K::Output: Deserialize<'de> + Clone,
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 TreeIndexStorage<K>
impl<K> Serialize for TreeIndexStorage<K>
Source§impl<K> StorageFor<K> for TreeIndexStorage<K>
impl<K> StorageFor<K> for TreeIndexStorage<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 TreeIndexStorage<K>
impl<K> RefUnwindSafe for TreeIndexStorage<K>
impl<K> Send for TreeIndexStorage<K>
impl<K> Sync for TreeIndexStorage<K>
impl<K> Unpin for TreeIndexStorage<K>
impl<K> UnwindSafe for TreeIndexStorage<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