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§
Sourcefn iter_table_keys<P>(
&self,
prefix: Option<P>,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
fn iter_table_keys<P>( &self, prefix: Option<P>, start: Option<&M::Key>, direction: Option<IterDirection>, ) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
Returns an iterator over the all keys in the table with a prefix after a specific start key.
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.
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.