Struct specs::storage::BTreeStorage
[−]
[src]
pub struct BTreeStorage<T>(_);
BTreeMap-based storage.
Trait Implementations
impl<T> Default for BTreeStorage<T>
[src]
impl<T> UnprotectedStorage<T> for BTreeStorage<T>
[src]
unsafe fn clean<B>(&mut self, _has: B) where
B: BitSetLike,
[src]
B: BitSetLike,
Clean the storage given a bitset with bits set for valid indices. Allows us to safely drop the storage. Read more
ⓘImportant traits for &'a mut Wunsafe fn get(&self, id: Index) -> &T
[src]
ⓘImportant traits for &'a mut W
Tries reading the data associated with an Index
. This is unsafe because the external set used to protect this storage is absent. Read more
ⓘImportant traits for &'a mut Wunsafe fn get_mut(&mut self, id: Index) -> &mut T
[src]
ⓘImportant traits for &'a mut W
Tries mutating the data associated with an Index
. This is unsafe because the external set used to protect this storage is absent. Read more
unsafe fn insert(&mut self, id: Index, v: T)
[src]
Inserts new data for a given Index
.
unsafe fn remove(&mut self, id: Index) -> T
[src]
Removes the data associated with an Index
.
unsafe fn drop(&mut self, id: Index)
[src]
Drops the data associated with an Index
.
impl<T> DistinctStorage for BTreeStorage<T>
[src]
Auto Trait Implementations
impl<T> Send for BTreeStorage<T> where
T: Send,
T: Send,
impl<T> Sync for BTreeStorage<T> where
T: Sync,
T: Sync,