Trait pallet_tenancy::storage::TryAppendDoubleMap
pub trait TryAppendDoubleMap<K1, K2, T, I>where
K1: Encode,
K2: Encode,
T: StorageTryAppend<I>,
I: Encode,{
fn try_append<LikeK1, LikeK2, LikeI>(
key1: LikeK1,
key2: LikeK2,
item: LikeI
) -> Result<(), ()>
where
LikeK1: EncodeLike<K1> + Clone,
LikeK2: EncodeLike<K2> + Clone,
LikeI: EncodeLike<I>;
}
Expand description
Storage double map that is capable of StorageTryAppend
.
Required Methods§
fn try_append<LikeK1, LikeK2, LikeI>(
key1: LikeK1,
key2: LikeK2,
item: LikeI
) -> Result<(), ()>where
LikeK1: EncodeLike<K1> + Clone,
LikeK2: EncodeLike<K2> + Clone,
LikeI: EncodeLike<I>,
fn try_append<LikeK1, LikeK2, LikeI>(
key1: LikeK1,
key2: LikeK2,
item: LikeI
) -> Result<(), ()>where
LikeK1: EncodeLike<K1> + Clone,
LikeK2: EncodeLike<K2> + Clone,
LikeI: EncodeLike<I>,
Try and append the item
into the storage double map at the given key
.
This might fail if bounds are not respected.