fuel_core_storage::iter

Trait IterableTable

source
pub trait IterableTable<M>
where M: Mappable,
{ // Required methods fn iter_table_keys<P>( &self, prefix: Option<P>, start: Option<&M::Key>, direction: Option<IterDirection>, ) -> BoxedIter<'_, Result<M::OwnedKey>> where P: AsRef<[u8]>; 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_keys<P>( &self, prefix: Option<P>, start: Option<&M::Key>, direction: Option<IterDirection>, ) -> BoxedIter<'_, Result<M::OwnedKey>>
where P: AsRef<[u8]>,

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

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>,