pub trait StorageMutateInfallible<Type: Mappable> {
    // Required methods
    fn insert(
        &mut self,
        key: &Type::Key,
        value: &Type::Value
    ) -> Option<Type::OwnedValue>;
    fn remove(&mut self, key: &Type::Key) -> Option<Type::OwnedValue>;
}

Required Methods§

source

fn insert( &mut self, key: &Type::Key, value: &Type::Value ) -> Option<Type::OwnedValue>

source

fn remove(&mut self, key: &Type::Key) -> Option<Type::OwnedValue>

Implementors§

source§

impl<S, Type> StorageMutateInfallible<Type> for Swhere S: StorageMutate<Type, Error = Infallible>, Type: Mappable,