Skip to main content

KVStoreMut

Trait KVStoreMut 

Source
pub trait KVStoreMut: KVStore {
    // Required methods
    fn set(&mut self, key: &[u8], value: &[u8]);
    fn remove(&mut self, key: &[u8]);
}

Required Methods§

Source

fn set(&mut self, key: &[u8], value: &[u8])

Sets the data stored in the account under the given key. Overwrites any existing data.

Source

fn remove(&mut self, key: &[u8])

Removes the data stored in the account under the given key.

Implementors§