Trait frame_support::storage::TryAppendNMap
source · pub trait TryAppendNMap<K: KeyGenerator, T: StorageTryAppend<I>, I: Encode> {
// Required method
fn try_append<LikeK: EncodeLikeTuple<K::KArg> + TupleToEncodedIter + Clone, LikeI: EncodeLike<I>>(
key: LikeK,
item: LikeI,
) -> Result<(), ()>;
}
Expand description
Storage N map that is capable of StorageTryAppend
.
Required Methods§
sourcefn try_append<LikeK: EncodeLikeTuple<K::KArg> + TupleToEncodedIter + Clone, LikeI: EncodeLike<I>>(
key: LikeK,
item: LikeI,
) -> Result<(), ()>
fn try_append<LikeK: EncodeLikeTuple<K::KArg> + TupleToEncodedIter + Clone, LikeI: EncodeLike<I>>( key: LikeK, item: LikeI, ) -> Result<(), ()>
Try and append the item
into the storage N map at the given key
.
This might fail if bounds are not respected.
Object Safety§
This trait is not object safe.