pub(crate) fn metered_write_gs<T>(&mut self, key: Key, value: T) -> Result<(), Error>
    where
        T: Into<StoredValue>,
    {
        let stored_value = value.into();
        self.validate_writeable(&key)?;
        self.validate_key(&key)?;
        self.validate_value(&stored_value)?;
        self.metered_write_gs_unsafe(key, stored_value)?;
        Ok(())
    }
/// Writes data to a global state and charges for bytes stored.
///
/// This method performs full validation of the key to be written.
Writes data to a global state and charges for bytes stored.
This method performs full validation of the key to be written.
Writes data to a global state and charges for bytes stored . This method performs full validation of the key to be written .
pub(crate) fn metered_write_gs<T>(&mut self, key: Key, value: T) -> Result<(), Error>
    where
        T: Into<StoredValue>,
    {
        let stored_value = value.into();
        self.validate_writeable(&key)?;
        self.validate_key(&key)?;
        self.validate_value(&stored_value)?;
        self.metered_write_gs_unsafe(key, stored_value)?;
        Ok(())
    }
pub ( crate ) fn metered_write_gs < T > ( & mut self , key : Key , value : T ) -> Result < ( ) , Error > where T : Into < StoredValue > , { let stored_value = value . into ( ) ; self . validate_writeable ( & key ) ? ; self . validate_key ( & key ) ? ; self . validate_value ( & stored_value ) ? ; self . metered_write_gs_unsafe ( key , stored_value ) ? ; Ok ( ( ) ) }
Writes data to a global state and charges for bytes stored.
Writes data to a global state and charges for bytes stored .
&mut self
key
Key
value
T
&mut self
key
Key
value
T