pub struct Storage {
pub top: StorageMap,
pub children_default: HashMap<Vec<u8>, StorageChild>,
}Expand description
Struct containing data needed for a storage.
Fields§
§top: StorageMapTop trie storage data.
children_default: HashMap<Vec<u8>, StorageChild>Children trie storage data.
The key does not including prefix, for the default
trie kind, so this is exclusively for the ChildType::ParentKeyId
tries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Storage
impl RefUnwindSafe for Storage
impl Send for Storage
impl Sync for Storage
impl Unpin for Storage
impl UnwindSafe for Storage
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