Struct sp_storage::Storage
source · pub struct Storage {
pub top: StorageMap,
pub children_default: HashMap<Vec<u8>, StorageChild>,
}
Expand description
Struct containing data needed for a storage.
Fields§
§top: StorageMap
Top trie storage data.
children_default: HashMap<Vec<u8>, StorageChild>
Children trie storage data. Key does not include prefix, only for the default
trie kind,
of ChildType::ParentKeyId
type.
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)