referrerpolicy=no-referrer-when-downgrade
frame_support::storage

Trait TryAppendValue

Source
pub trait TryAppendValue<T: StorageTryAppend<I>, I: Encode> {
    // Required method
    fn try_append<LikeI: EncodeLike<I>>(item: LikeI) -> Result<(), ()>;
}
Expand description

Storage value that is capable of StorageTryAppend.

Required Methods§

Source

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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T, I, StorageValueT> TryAppendValue<T, I> for StorageValueT
where I: Encode, T: FullCodec + StorageTryAppend<I>, StorageValueT: StorageValue<T>,