referrerpolicy=no-referrer-when-downgrade
snowbridge_core::sparse_bitmap

Trait SparseBitmap

Source
pub trait SparseBitmap<BitMap>
where BitMap: StorageMap<u64, u128, Query = u128>,
{ // Required methods fn get(index: u64) -> bool; fn set(index: u64); }
Expand description

Sparse bitmap interface.

Required Methods§

Source

fn get(index: u64) -> bool

Get the bool at the provided index.

Source

fn set(index: u64)

Set the bool at the given index to true.

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.

Implementors§

Source§

impl<BitMap> SparseBitmap<BitMap> for SparseBitmapImpl<BitMap>
where BitMap: StorageMap<u64, u128, Query = u128>,