Struct dharitri_wasm::storage::StorageKey
source · pub struct StorageKey<A>where
A: ManagedTypeApi + ErrorApi + 'static,{ /* private fields */ }
Implementations§
source§impl<A> StorageKey<A>where
A: ManagedTypeApi + ErrorApi + 'static,
impl<A> StorageKey<A>where
A: ManagedTypeApi + ErrorApi + 'static,
pub fn new(base_key: &[u8]) -> Self
pub fn append_bytes(&mut self, bytes: &[u8])
pub fn append_managed_buffer(&mut self, buffer: &ManagedBuffer<A>)
pub fn append_item<T>(&mut self, item: &T)where
T: NestedEncode,
pub fn to_boxed_bytes(&self) -> BoxedBytes
Trait Implementations§
source§impl<M: ManagedTypeApi> Clone for StorageKey<M>
impl<M: ManagedTypeApi> Clone for StorageKey<M>
source§impl<M: ManagedTypeApi> From<ManagedBuffer<M>> for StorageKey<M>
impl<M: ManagedTypeApi> From<ManagedBuffer<M>> for StorageKey<M>
source§fn from(buffer: ManagedBuffer<M>) -> Self
fn from(buffer: ManagedBuffer<M>) -> Self
Converts to this type from the input type.
source§impl<M, const N: usize> From<ManagedByteArray<M, N>> for StorageKey<M>where
M: ManagedTypeApi + ErrorApi,
impl<M, const N: usize> From<ManagedByteArray<M, N>> for StorageKey<M>where
M: ManagedTypeApi + ErrorApi,
source§fn from(mba: ManagedByteArray<M, N>) -> Self
fn from(mba: ManagedByteArray<M, N>) -> Self
Converts to this type from the input type.
source§impl<A> ManagedType<A> for StorageKey<A>where
A: ManagedTypeApi + ErrorApi + 'static,
impl<A> ManagedType<A> for StorageKey<A>where
A: ManagedTypeApi + ErrorApi + 'static,
fn as_ref(&self) -> ManagedRef<'_, M, Self>
Auto Trait Implementations§
impl<A> RefUnwindSafe for StorageKey<A>where
A: RefUnwindSafe,
impl<A> Send for StorageKey<A>where
A: Send,
impl<A> Sync for StorageKey<A>where
A: Sync,
impl<A> Unpin for StorageKey<A>where
A: Unpin,
impl<A> UnwindSafe for StorageKey<A>where
A: UnwindSafe,
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