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