referrerpolicy=no-referrer-when-downgrade

Trait frame_support::storage::StorageAppend

source ·
pub trait StorageAppend<Item: Encode>: Sealed { }
Expand description

Marker trait that will be implemented for types that support the storage::append api.

This trait is sealed.

Implementations on Foreign Types§

source§

impl StorageAppend<DigestItem> for Digest

We abuse the fact that SCALE does not put any marker into the encoding, i.e. we only encode the internal vec and we can append to this vec. We have a test that ensures that if the Digest format ever changes, we need to remove this here.

source§

impl<T: Encode> StorageAppend<T> for BTreeSet<T>

source§

impl<T: Encode> StorageAppend<T> for Vec<T>

Implementors§