pub(crate) fn metered_add_gs<K, V>(&mut self, key: K, value: V) -> Result<(), Error>
    where
        K: Into<Key>,
        V: Into<StoredValue>,
    {
        let key = key.into();
        let value = value.into();
        self.validate_addable(&key)?;
        self.validate_key(&key)?;
        self.validate_value(&value)?;
        self.metered_add_gs_unsafe(key, value)
    }
/// Adds `value` to the `key`. The premise for being able to `add` value is
/// that the type of it value can be added (is a Monoid). If the
/// values can't be added, either because they're not a Monoid or if the
/// value stored under `key` has different type, then `TypeMismatch`
/// errors is returned.
Adds `value` to the `key`. The premise for being able to `add` value is
that the type of it value can be added (is a Monoid). If the
values can't be added, either because they're not a Monoid or if the
value stored under `key` has different type, then `TypeMismatch`
errors is returned.
Adds ` value ` to the ` key ` . The premise for being able to ` add ` value is that the type of it value can be added ( is a Monoid ) . If the values can ' t be added either because they ' re not a Monoid or if the value stored under ` key ` has different type then ` TypeMismatch ` errors is returned .
pub(crate) fn metered_add_gs<K, V>(&mut self, key: K, value: V) -> Result<(), Error>
    where
        K: Into<Key>,
        V: Into<StoredValue>,
    {
        let key = key.into();
        let value = value.into();
        self.validate_addable(&key)?;
        self.validate_key(&key)?;
        self.validate_value(&value)?;
        self.metered_add_gs_unsafe(key, value)
    }
pub ( crate ) fn metered_add_gs < K , V > ( & mut self , key : K , value : V ) -> Result < ( ) , Error > where K : Into < Key > , V : Into < StoredValue > , { let key = key . into ( ) ; let value = value . into ( ) ; self . validate_addable ( & key ) ? ; self . validate_key ( & key ) ? ; self . validate_value ( & value ) ? ; self . metered_add_gs_unsafe ( key , value ) }
Adds `value` to the `key`.
Adds ` value ` to the ` key ` .
&mut self
key
K
value
V
&mut self
key
K
value
V