Trait frame_support::storage::TryAppendMap [−][src]
pub trait TryAppendMap<K: Encode, T: StorageTryAppend<I>, I: Encode> { fn try_append<LikeK: EncodeLike<K> + Clone, LikeI: EncodeLike<I>>(
key: LikeK,
item: LikeI
) -> Result<(), ()>; }
Expand description
Storage map that is capable of StorageTryAppend
.
Required methods
fn try_append<LikeK: EncodeLike<K> + Clone, LikeI: EncodeLike<I>>(
key: LikeK,
item: LikeI
) -> Result<(), ()>
fn try_append<LikeK: EncodeLike<K> + Clone, LikeI: EncodeLike<I>>(
key: LikeK,
item: LikeI
) -> Result<(), ()>
Try and append the item
into the storage map at the given key
.
This might fail if bounds are not respected.
Implementors
impl<K, T, I, StorageMapT> TryAppendMap<K, T, I> for StorageMapT where
K: FullCodec,
T: FullCodec + StorageTryAppend<I>,
I: Encode,
StorageMapT: StorageMap<K, T>,