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§
sourcefn iter_table<P>(
&self,
prefix: Option<P>,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
fn iter_table<P>( &self, prefix: Option<P>, start: Option<&M::Key>, direction: Option<IterDirection>, ) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
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.