pub trait IteratorOverTable {
// Provided methods
fn iter_all_keys<M>(
&self,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
where M: Mappable,
Self: IterableTable<M> { ... }
fn iter_all_by_prefix_keys<M, P>(
&self,
prefix: Option<P>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
where M: Mappable,
P: AsRef<[u8]>,
Self: IterableTable<M> { ... }
fn iter_all_by_start_keys<M>(
&self,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
where M: Mappable,
Self: IterableTable<M> { ... }
fn iter_all_filtered_keys<M, P>(
&self,
prefix: Option<P>,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
where M: Mappable,
P: AsRef<[u8]>,
Self: IterableTable<M> { ... }
fn iter_all<M>(
&self,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
where M: Mappable,
Self: IterableTable<M> { ... }
fn iter_all_by_prefix<M, P>(
&self,
prefix: Option<P>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
where M: Mappable,
P: AsRef<[u8]>,
Self: IterableTable<M> { ... }
fn iter_all_by_start<M>(
&self,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
where M: Mappable,
Self: IterableTable<M> { ... }
fn iter_all_filtered<M, P>(
&self,
prefix: Option<P>,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
where M: Mappable,
P: AsRef<[u8]>,
Self: IterableTable<M> { ... }
}
Expand description
A helper trait to provide a user-friendly API over table iteration.
Provided Methods§
Sourcefn iter_all_keys<M>(
&self,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘwhere
M: Mappable,
Self: IterableTable<M>,
fn iter_all_keys<M>(
&self,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘwhere
M: Mappable,
Self: IterableTable<M>,
Returns an iterator over the all keys in the table.
Sourcefn iter_all_by_prefix_keys<M, P>(
&self,
prefix: Option<P>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
fn iter_all_by_prefix_keys<M, P>( &self, prefix: Option<P>, ) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
Returns an iterator over the all keys in the table with the specified prefix.
Sourcefn iter_all_by_start_keys<M>(
&self,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘwhere
M: Mappable,
Self: IterableTable<M>,
fn iter_all_by_start_keys<M>(
&self,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘwhere
M: Mappable,
Self: IterableTable<M>,
Returns an iterator over the all keys in the table after a specific start key.
Sourcefn iter_all_filtered_keys<M, P>(
&self,
prefix: Option<P>,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<M::OwnedKey>> ⓘ
fn iter_all_filtered_keys<M, 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_all<M>(
&self,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘwhere
M: Mappable,
Self: IterableTable<M>,
fn iter_all<M>(
&self,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘwhere
M: Mappable,
Self: IterableTable<M>,
Returns an iterator over the all entries in the table.
Sourcefn iter_all_by_prefix<M, P>(
&self,
prefix: Option<P>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
fn iter_all_by_prefix<M, P>( &self, prefix: Option<P>, ) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
Returns an iterator over the all entries in the table with the specified prefix.
Sourcefn iter_all_by_start<M>(
&self,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘwhere
M: Mappable,
Self: IterableTable<M>,
fn iter_all_by_start<M>(
&self,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘwhere
M: Mappable,
Self: IterableTable<M>,
Returns an iterator over the all entries in the table after a specific start key.
Sourcefn iter_all_filtered<M, P>(
&self,
prefix: Option<P>,
start: Option<&M::Key>,
direction: Option<IterDirection>,
) -> BoxedIter<'_, Result<(M::OwnedKey, M::OwnedValue)>> ⓘ
fn iter_all_filtered<M, 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.