Trait substreams::store::StoreMax

source ·
pub trait StoreMax<V>: StoreNew + StoreDelete {
    // Required method
    fn max<K: AsRef<str>>(&self, ord: u64, key: K, value: V);
}
Expand description

StoreMax is a trait which is implemented on any type of typed StoreMax

Required Methods§

source

fn max<K: AsRef<str>>(&self, ord: u64, key: K, value: V)

max will set the provided key in the store only if the value received in parameter is bigger than the one already present in the store, with a default of the zero value when the key is absent.

Object Safety§

This trait is not object safe.

Implementors§