Trait gear_common::auxiliary::AuxiliaryStorageWrap

source ·
pub trait AuxiliaryStorageWrap {
    type Key: Clone + Ord;
    type Value: Clone;

    // Required methods
    fn with_storage<F, R>(f: F) -> R
       where F: FnOnce(&BTreeMap<Self::Key, Self::Value>) -> R;
    fn with_storage_mut<F, R>(f: F) -> R
       where F: FnOnce(&mut BTreeMap<Self::Key, Self::Value>) -> R;
}

Required Associated Types§

Required Methods§

source

fn with_storage<F, R>(f: F) -> R
where F: FnOnce(&BTreeMap<Self::Key, Self::Value>) -> R,

source

fn with_storage_mut<F, R>(f: F) -> R
where F: FnOnce(&mut BTreeMap<Self::Key, Self::Value>) -> R,

Object Safety§

This trait is not object safe.

Implementors§