pub trait PrefixIteratorOnRemoval {
// Required method
fn on_removal(key: &[u8], value: &[u8]);
}
Expand description
Trait for specialising on removal logic of PrefixIterator
.
Required Methods§
Sourcefn on_removal(key: &[u8], value: &[u8])
fn on_removal(key: &[u8], value: &[u8])
This function is called whenever a key/value is removed.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl PrefixIteratorOnRemoval for ()
impl PrefixIteratorOnRemoval for ()
No-op implementation.