pub trait Truncate<K, V>: StorageBackend {
    fn truncate(&self) -> Result<(), Self::Error>;
}
Expand description

Truncate<K, V> trait extends the StorageBackend with truncate operation for the (key: K, value: V) pair; therefore, it should be explicitly implemented for the corresponding StorageBackend.

Required Methods

Truncates all the entries associated with the (K, V) pair from the storage.

Implementors