referrerpolicy=no-referrer-when-downgrade
frame_support::storage

Trait PrefixIteratorOnRemoval

Source
pub trait PrefixIteratorOnRemoval {
    // Required method
    fn on_removal(key: &[u8], value: &[u8]);
}
Expand description

Trait for specialising on removal logic of PrefixIterator.

Required Methods§

Source

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 ()

No-op implementation.

Source§

fn on_removal(_key: &[u8], _value: &[u8])

Implementors§