fuel_core_storage::iter

Trait IterableStore

Source
pub trait IterableStore: KeyValueInspect {
    // Required methods
    fn iter_store(
        &self,
        column: Self::Column,
        prefix: Option<&[u8]>,
        start: Option<&[u8]>,
        direction: IterDirection,
    ) -> BoxedIter<'_, KVItem> ;
    fn iter_store_keys(
        &self,
        column: Self::Column,
        prefix: Option<&[u8]>,
        start: Option<&[u8]>,
        direction: IterDirection,
    ) -> BoxedIter<'_, KeyItem> ;
}
Expand description

A trait for iterating over the storage of KeyValueInspect.

Required Methods§

Source

fn iter_store( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KVItem>

Returns an iterator over the values in the storage.

Source

fn iter_store_keys( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KeyItem>

Returns an iterator over keys in the storage.

Implementations on Foreign Types§

Source§

impl<T> IterableStore for Arc<T>
where T: IterableStore,

Source§

fn iter_store( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KVItem>

Source§

fn iter_store_keys( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KeyItem>

Source§

impl<T: IterableStore> IterableStore for &T

Source§

fn iter_store( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KVItem>

Source§

fn iter_store_keys( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KeyItem>

Source§

impl<T: IterableStore> IterableStore for &mut T

Source§

fn iter_store( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KVItem>

Source§

fn iter_store_keys( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KeyItem>

Source§

impl<T: IterableStore> IterableStore for Box<T>

Source§

fn iter_store( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KVItem>

Source§

fn iter_store_keys( &self, column: Self::Column, prefix: Option<&[u8]>, start: Option<&[u8]>, direction: IterDirection, ) -> BoxedIter<'_, KeyItem>

Implementors§

Source§

impl<'a, Column> IterableStore for ChangesIterator<'a, Column>
where Column: StorageColumn,

Source§

impl<S> IterableStore for StructuredStorage<S>
where S: IterableStore,