pub trait Deletable {
    // Required method
    fn delete(self);
}
Expand description

A type that can be deleted from the state. For simple types, such as u8 and String, the delete methods is a no-op. But for StateBox, StateMap, and StateSet, delete makes sure to the delete all the necessary data from the state.

Required Methods§

source

fn delete(self)

Delete all items that this type owns in the state.

Implementors§

source§

impl<K, V, S> Deletable for StateMap<K, V, S>

source§

impl<T, S> Deletable for StateBox<T, S>

source§

impl<T, S> Deletable for StateSet<T, S>
where S: HasStateApi,

source§

impl<T: Serialize> Deletable for T

source§

impl<const M: usize, K, V> Deletable for StateBTreeMap<K, V, M>