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