Trait fuel_core_storage::iter::IterableTable

source ·
pub trait IterableTable<M>
where M: Mappable,
{ // Required method fn iter_table<P>( &self, prefix: Option<P>, start: Option<&M::Key>, direction: Option<IterDirection>, ) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> where P: AsRef<[u8]>; }
Expand description

A trait for iterating over the Mappable table.

Required Methods§

source

fn iter_table<P>( &self, prefix: Option<P>, start: Option<&M::Key>, direction: Option<IterDirection>, ) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>>
where P: AsRef<[u8]>,

Returns an iterator over the all entries in the table with a prefix after a specific start key.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<Column, M, S> IterableTable<M> for S
where M: TableWithBlueprint<Column = Column>, M::Blueprint: BlueprintInspect<M, S>, S: IterableStore<Column = Column>,