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.

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<Column, M, S> IterableTable<M> for S
where M: TableWithBlueprint<Column = Column>, M::Blueprint: BlueprintInspect<M, S>, S: IterableStore<Column = Column>,