pub struct TestDBIter<'a, K, V> { /* private fields */ }
Expand description
The self-referencing struct.
Implementations§
Source§impl<'a, K, V> TestDBIter<'a, K, V>
impl<'a, K, V> TestDBIter<'a, K, V>
Sourcepub fn new(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Iter<'this, Vec<u8>, Vec<u8>>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> TestDBIter<'a, K, V> ⓘ
pub fn new( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Iter<'this, Vec<u8>, Vec<u8>>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> TestDBIter<'a, K, V> ⓘ
Constructs a new instance of this self-referential struct. (See also TestDBIterBuilder::build()
). Each argument is a field of the new struct. Fields that refer to other fields inside the struct are initialized using functions instead of directly passing their value. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> iter: _ |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub async fn new_async(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Iter<'this, Vec<u8>, Vec<u8>>> + 'this>>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> TestDBIter<'a, K, V> ⓘ
pub async fn new_async( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Iter<'this, Vec<u8>, Vec<u8>>> + 'this>>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> TestDBIter<'a, K, V> ⓘ
Constructs a new instance of this self-referential struct. (See also TestDBIterAsyncBuilder::build()
). Each argument is a field of the new struct. Fields that refer to other fields inside the struct are initialized using functions instead of directly passing their value. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> iter: _ |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub async fn new_async_send(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Iter<'this, Vec<u8>, Vec<u8>>> + Send + 'this>>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> TestDBIter<'a, K, V> ⓘ
pub async fn new_async_send( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Iter<'this, Vec<u8>, Vec<u8>>> + Send + 'this>>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> TestDBIter<'a, K, V> ⓘ
Constructs a new instance of this self-referential struct. (See also TestDBIterAsyncSendBuilder::build()
). Each argument is a field of the new struct. Fields that refer to other fields inside the struct are initialized using functions instead of directly passing their value. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> iter: _ |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub fn try_new<Error_>(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> Result<TestDBIter<'a, K, V>, Error_>
pub fn try_new<Error_>( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> Result<TestDBIter<'a, K, V>, Error_>
(See also TestDBIterTryBuilder::try_build()
.) Like new
, but builders for self-referencing fields can return results. If any of them fail, Err
is returned. If all of them succeed, Ok
is returned. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> Result<iter: _, Error_> |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub fn try_new_or_recover<Error_>(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> Result<TestDBIter<'a, K, V>, (Error_, Heads<'a, K, V>)>
pub fn try_new_or_recover<Error_>( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> Result<TestDBIter<'a, K, V>, (Error_, Heads<'a, K, V>)>
(See also TestDBIterTryBuilder::try_build_or_recover()
.) Like try_new
, but all head fields are returned in the case of an error. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> Result<iter: _, Error_> |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub async fn try_new_async<Error_>(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>> + 'this>>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> Result<TestDBIter<'a, K, V>, Error_>
pub async fn try_new_async<Error_>( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>> + 'this>>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> Result<TestDBIter<'a, K, V>, Error_>
(See also TestDBIterAsyncTryBuilder::try_build()
.) Like new
, but builders for self-referencing fields can return results. If any of them fail, Err
is returned. If all of them succeed, Ok
is returned. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> Result<iter: _, Error_> |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub async fn try_new_or_recover_async<Error_>(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>> + 'this>>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> Result<TestDBIter<'a, K, V>, (Error_, Heads<'a, K, V>)>
pub async fn try_new_or_recover_async<Error_>( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>> + 'this>>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> Result<TestDBIter<'a, K, V>, (Error_, Heads<'a, K, V>)>
(See also TestDBIterAsyncTryBuilder::try_build_or_recover()
.) Like try_new
, but all head fields are returned in the case of an error. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> Result<iter: _, Error_> |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub async fn try_new_async_send<Error_>(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>> + Send + 'this>>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> Result<TestDBIter<'a, K, V>, Error_>
pub async fn try_new_async_send<Error_>( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>> + Send + 'this>>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> Result<TestDBIter<'a, K, V>, Error_>
(See also TestDBIterAsyncSendTryBuilder::try_build()
.) Like new
, but builders for self-referencing fields can return results. If any of them fail, Err
is returned. If all of them succeed, Ok
is returned. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> Result<iter: _, Error_> |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub async fn try_new_or_recover_async_send<Error_>(
rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>,
iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>> + Send + 'this>>,
phantom: PhantomData<(K, V)>,
direction: Direction,
) -> Result<TestDBIter<'a, K, V>, (Error_, Heads<'a, K, V>)>
pub async fn try_new_or_recover_async_send<Error_>( rows: RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>, iter_builder: impl for<'this> FnOnce(&'this mut RwLockReadGuard<'a, BTreeMap<Vec<u8>, Vec<u8>>>) -> Pin<Box<dyn Future<Output = Result<Iter<'this, Vec<u8>, Vec<u8>>, Error_>> + Send + 'this>>, phantom: PhantomData<(K, V)>, direction: Direction, ) -> Result<TestDBIter<'a, K, V>, (Error_, Heads<'a, K, V>)>
(See also TestDBIterAsyncSendTryBuilder::try_build_or_recover()
.) Like try_new
, but all head fields are returned in the case of an error. The arguments are as follows:
Argument | Suggested Use |
---|---|
rows | Directly pass in the value this field should contain |
iter_builder | Use a function or closure: (rows: &mut _) -> Result<iter: _, Error_> |
phantom | Directly pass in the value this field should contain |
direction | Directly pass in the value this field should contain |
Sourcepub fn with_iter<'outer_borrow, ReturnType>(
&'outer_borrow self,
user: impl for<'this> FnOnce(&'outer_borrow Iter<'this, Vec<u8>, Vec<u8>>) -> ReturnType,
) -> ReturnType
pub fn with_iter<'outer_borrow, ReturnType>( &'outer_borrow self, user: impl for<'this> FnOnce(&'outer_borrow Iter<'this, Vec<u8>, Vec<u8>>) -> ReturnType, ) -> ReturnType
Provides an immutable reference to iter
. This method was generated because iter
is a tail field.
Sourcepub fn borrow_iter<'this>(&'this self) -> &'this Iter<'this, Vec<u8>, Vec<u8>>
pub fn borrow_iter<'this>(&'this self) -> &'this Iter<'this, Vec<u8>, Vec<u8>>
Provides an immutable reference to iter
. This method was generated because iter
is a tail field.
Sourcepub fn with_iter_mut<'outer_borrow, ReturnType>(
&'outer_borrow mut self,
user: impl for<'this> FnOnce(&'outer_borrow mut Iter<'this, Vec<u8>, Vec<u8>>) -> ReturnType,
) -> ReturnType
pub fn with_iter_mut<'outer_borrow, ReturnType>( &'outer_borrow mut self, user: impl for<'this> FnOnce(&'outer_borrow mut Iter<'this, Vec<u8>, Vec<u8>>) -> ReturnType, ) -> ReturnType
Provides a mutable reference to iter
. This method was generated because iter
is a tail field. No borrow_iter_mut
function was generated because Rust’s borrow checker is currently unable to guarantee that such a method would be used safely.
Sourcepub fn with_direction<'outer_borrow, ReturnType>(
&'outer_borrow self,
user: impl for<'this> FnOnce(&'outer_borrow Direction) -> ReturnType,
) -> ReturnType
pub fn with_direction<'outer_borrow, ReturnType>( &'outer_borrow self, user: impl for<'this> FnOnce(&'outer_borrow Direction) -> ReturnType, ) -> ReturnType
Provides an immutable reference to direction
. This method was generated because direction
is a tail field.
Sourcepub fn borrow_direction<'this>(&'this self) -> &'this Direction
pub fn borrow_direction<'this>(&'this self) -> &'this Direction
Provides an immutable reference to direction
. This method was generated because direction
is a tail field.
Sourcepub fn with_direction_mut<'outer_borrow, ReturnType>(
&'outer_borrow mut self,
user: impl for<'this> FnOnce(&'outer_borrow mut Direction) -> ReturnType,
) -> ReturnType
pub fn with_direction_mut<'outer_borrow, ReturnType>( &'outer_borrow mut self, user: impl for<'this> FnOnce(&'outer_borrow mut Direction) -> ReturnType, ) -> ReturnType
Provides a mutable reference to direction
. This method was generated because direction
is a tail field. No borrow_direction_mut
function was generated because Rust’s borrow checker is currently unable to guarantee that such a method would be used safely.
Sourcepub fn with<'outer_borrow, ReturnType>(
&'outer_borrow self,
user: impl for<'this> FnOnce(BorrowedFields<'outer_borrow, 'this, 'a, K, V>) -> ReturnType,
) -> ReturnType
pub fn with<'outer_borrow, ReturnType>( &'outer_borrow self, user: impl for<'this> FnOnce(BorrowedFields<'outer_borrow, 'this, 'a, K, V>) -> ReturnType, ) -> ReturnType
This method provides immutable references to all tail and immutably borrowed fields.
Sourcepub fn with_mut<'outer_borrow, ReturnType>(
&'outer_borrow mut self,
user: impl for<'this0> FnOnce(BorrowedMutFields<'outer_borrow, 'this0, 'a, K, V>) -> ReturnType,
) -> ReturnType
pub fn with_mut<'outer_borrow, ReturnType>( &'outer_borrow mut self, user: impl for<'this0> FnOnce(BorrowedMutFields<'outer_borrow, 'this0, 'a, K, V>) -> ReturnType, ) -> ReturnType
This method provides mutable references to all tail fields.
Sourcepub fn into_heads(self) -> Heads<'a, K, V>
pub fn into_heads(self) -> Heads<'a, K, V>
This function drops all internally referencing fields and returns only the head fields of this struct.
Source§impl<'a, K: Serialize, V> TestDBIter<'a, K, V>
impl<'a, K: Serialize, V> TestDBIter<'a, K, V>
Sourcepub fn skip_to(self, key: &K) -> Result<Self, TypedStoreError>
pub fn skip_to(self, key: &K) -> Result<Self, TypedStoreError>
Skips all the elements that are smaller than the given key, and either lands on the key or the first one greater than the key.
Sourcepub fn skip_prior_to(self, key: &K) -> Result<Self, TypedStoreError>
pub fn skip_prior_to(self, key: &K) -> Result<Self, TypedStoreError>
Moves the iterator to the element given or the one prior to it if it does not exist. If there is no element prior to it, it returns an empty iterator.
Sourcepub fn skip_to_last(self) -> Self
pub fn skip_to_last(self) -> Self
Seeks to the last key in the database (at this column family).
Sourcepub fn reverse(self) -> TestDBRevIter<'a, K, V> ⓘ
pub fn reverse(self) -> TestDBRevIter<'a, K, V> ⓘ
Will make the direction of the iteration reverse and will
create a new RevIter
to consume. Every call to next
method
will give the next element from the end.
Trait Implementations§
Source§impl<'a, K, V> Drop for TestDBIter<'a, K, V>
impl<'a, K, V> Drop for TestDBIter<'a, K, V>
Source§impl<K: DeserializeOwned, V: DeserializeOwned> Iterator for TestDBIter<'_, K, V>
impl<K: DeserializeOwned, V: DeserializeOwned> Iterator for TestDBIter<'_, K, V>
Source§fn next(&mut self) -> Option<Self::Item>
fn next(&mut self) -> Option<Self::Item>
Source§fn next_chunk<const N: usize>(
&mut self,
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
fn next_chunk<const N: usize>(
&mut self,
) -> Result<[Self::Item; N], IntoIter<Self::Item, N>>where
Self: Sized,
iter_next_chunk
)N
values. Read more1.0.0 · Source§fn size_hint(&self) -> (usize, Option<usize>)
fn size_hint(&self) -> (usize, Option<usize>)
1.0.0 · Source§fn count(self) -> usizewhere
Self: Sized,
fn count(self) -> usizewhere
Self: Sized,
1.0.0 · Source§fn last(self) -> Option<Self::Item>where
Self: Sized,
fn last(self) -> Option<Self::Item>where
Self: Sized,
Source§fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
fn advance_by(&mut self, n: usize) -> Result<(), NonZero<usize>>
iter_advance_by
)n
elements. Read more1.0.0 · Source§fn nth(&mut self, n: usize) -> Option<Self::Item>
fn nth(&mut self, n: usize) -> Option<Self::Item>
n
th element of the iterator. Read more1.28.0 · Source§fn step_by(self, step: usize) -> StepBy<Self>where
Self: Sized,
fn step_by(self, step: usize) -> StepBy<Self>where
Self: Sized,
1.0.0 · Source§fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
fn chain<U>(self, other: U) -> Chain<Self, <U as IntoIterator>::IntoIter>
1.0.0 · Source§fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>where
Self: Sized,
U: IntoIterator,
fn zip<U>(self, other: U) -> Zip<Self, <U as IntoIterator>::IntoIter>where
Self: Sized,
U: IntoIterator,
Source§fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
fn intersperse(self, separator: Self::Item) -> Intersperse<Self>
iter_intersperse
)separator
between adjacent
items of the original iterator. Read moreSource§fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
fn intersperse_with<G>(self, separator: G) -> IntersperseWith<Self, G>
iter_intersperse
)separator
between adjacent items of the original iterator. Read more1.0.0 · Source§fn map<B, F>(self, f: F) -> Map<Self, F>
fn map<B, F>(self, f: F) -> Map<Self, F>
1.0.0 · Source§fn filter<P>(self, predicate: P) -> Filter<Self, P>
fn filter<P>(self, predicate: P) -> Filter<Self, P>
1.0.0 · Source§fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
fn filter_map<B, F>(self, f: F) -> FilterMap<Self, F>
1.0.0 · Source§fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
fn enumerate(self) -> Enumerate<Self>where
Self: Sized,
1.0.0 · Source§fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
fn skip_while<P>(self, predicate: P) -> SkipWhile<Self, P>
1.0.0 · Source§fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
fn take_while<P>(self, predicate: P) -> TakeWhile<Self, P>
1.57.0 · Source§fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
fn map_while<B, P>(self, predicate: P) -> MapWhile<Self, P>
1.0.0 · Source§fn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
fn skip(self, n: usize) -> Skip<Self>where
Self: Sized,
n
elements. Read more1.0.0 · Source§fn take(self, n: usize) -> Take<Self>where
Self: Sized,
fn take(self, n: usize) -> Take<Self>where
Self: Sized,
n
elements, or fewer
if the underlying iterator ends sooner. Read more1.0.0 · Source§fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
fn flat_map<U, F>(self, f: F) -> FlatMap<Self, U, F>
1.29.0 · Source§fn flatten(self) -> Flatten<Self>
fn flatten(self) -> Flatten<Self>
Source§fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
fn map_windows<F, R, const N: usize>(self, f: F) -> MapWindows<Self, F, N>
iter_map_windows
)f
for each contiguous window of size N
over
self
and returns an iterator over the outputs of f
. Like slice::windows()
,
the windows during mapping overlap as well. Read more1.0.0 · Source§fn inspect<F>(self, f: F) -> Inspect<Self, F>
fn inspect<F>(self, f: F) -> Inspect<Self, F>
1.0.0 · Source§fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
fn by_ref(&mut self) -> &mut Selfwhere
Self: Sized,
Iterator
. Read moreSource§fn try_collect<B>(
&mut self,
) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
fn try_collect<B>( &mut self, ) -> <<Self::Item as Try>::Residual as Residual<B>>::TryType
iterator_try_collect
)Source§fn collect_into<E>(self, collection: &mut E) -> &mut E
fn collect_into<E>(self, collection: &mut E) -> &mut E
iter_collect_into
)1.0.0 · Source§fn partition<B, F>(self, f: F) -> (B, B)
fn partition<B, F>(self, f: F) -> (B, B)
Source§fn is_partitioned<P>(self, predicate: P) -> bool
fn is_partitioned<P>(self, predicate: P) -> bool
iter_is_partitioned
)true
precede all those that return false
. Read more1.27.0 · Source§fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
fn try_fold<B, F, R>(&mut self, init: B, f: F) -> R
1.27.0 · Source§fn try_for_each<F, R>(&mut self, f: F) -> R
fn try_for_each<F, R>(&mut self, f: F) -> R
1.0.0 · Source§fn fold<B, F>(self, init: B, f: F) -> B
fn fold<B, F>(self, init: B, f: F) -> B
1.51.0 · Source§fn reduce<F>(self, f: F) -> Option<Self::Item>
fn reduce<F>(self, f: F) -> Option<Self::Item>
Source§fn try_reduce<R>(
&mut self,
f: impl FnMut(Self::Item, Self::Item) -> R,
) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
fn try_reduce<R>( &mut self, f: impl FnMut(Self::Item, Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<<R as Try>::Output>>>::TryType
iterator_try_reduce
)1.0.0 · Source§fn all<F>(&mut self, f: F) -> bool
fn all<F>(&mut self, f: F) -> bool
1.0.0 · Source§fn any<F>(&mut self, f: F) -> bool
fn any<F>(&mut self, f: F) -> bool
1.0.0 · Source§fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
fn find<P>(&mut self, predicate: P) -> Option<Self::Item>
1.30.0 · Source§fn find_map<B, F>(&mut self, f: F) -> Option<B>
fn find_map<B, F>(&mut self, f: F) -> Option<B>
Source§fn try_find<R>(
&mut self,
f: impl FnMut(&Self::Item) -> R,
) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
fn try_find<R>( &mut self, f: impl FnMut(&Self::Item) -> R, ) -> <<R as Try>::Residual as Residual<Option<Self::Item>>>::TryType
try_find
)1.0.0 · Source§fn position<P>(&mut self, predicate: P) -> Option<usize>
fn position<P>(&mut self, predicate: P) -> Option<usize>
1.0.0 · Source§fn max(self) -> Option<Self::Item>
fn max(self) -> Option<Self::Item>
1.0.0 · Source§fn min(self) -> Option<Self::Item>
fn min(self) -> Option<Self::Item>
1.6.0 · Source§fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
fn max_by_key<B, F>(self, f: F) -> Option<Self::Item>
1.15.0 · Source§fn max_by<F>(self, compare: F) -> Option<Self::Item>
fn max_by<F>(self, compare: F) -> Option<Self::Item>
1.6.0 · Source§fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
fn min_by_key<B, F>(self, f: F) -> Option<Self::Item>
1.15.0 · Source§fn min_by<F>(self, compare: F) -> Option<Self::Item>
fn min_by<F>(self, compare: F) -> Option<Self::Item>
1.0.0 · Source§fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
fn unzip<A, B, FromA, FromB>(self) -> (FromA, FromB)
1.36.0 · Source§fn copied<'a, T>(self) -> Copied<Self>
fn copied<'a, T>(self) -> Copied<Self>
Source§fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>where
Self: Sized,
fn array_chunks<const N: usize>(self) -> ArrayChunks<Self, N>where
Self: Sized,
iter_array_chunks
)N
elements of the iterator at a time. Read more1.11.0 · Source§fn product<P>(self) -> P
fn product<P>(self) -> P
Source§fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
fn cmp_by<I, F>(self, other: I, cmp: F) -> Ordering
iter_order_by
)Iterator
with those
of another with respect to the specified comparison function. Read more1.5.0 · Source§fn partial_cmp<I>(self, other: I) -> Option<Ordering>
fn partial_cmp<I>(self, other: I) -> Option<Ordering>
PartialOrd
elements of
this Iterator
with those of another. The comparison works like short-circuit
evaluation, returning a result without comparing the remaining elements.
As soon as an order can be determined, the evaluation stops and a result is returned. Read moreSource§fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where
Self: Sized,
I: IntoIterator,
F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,
fn partial_cmp_by<I, F>(self, other: I, partial_cmp: F) -> Option<Ordering>where
Self: Sized,
I: IntoIterator,
F: FnMut(Self::Item, <I as IntoIterator>::Item) -> Option<Ordering>,
iter_order_by
)Iterator
with those
of another with respect to the specified comparison function. Read moreSource§fn eq_by<I, F>(self, other: I, eq: F) -> bool
fn eq_by<I, F>(self, other: I, eq: F) -> bool
iter_order_by
)1.5.0 · Source§fn lt<I>(self, other: I) -> bool
fn lt<I>(self, other: I) -> bool
Iterator
are lexicographically
less than those of another. Read more1.5.0 · Source§fn le<I>(self, other: I) -> bool
fn le<I>(self, other: I) -> bool
Iterator
are lexicographically
less or equal to those of another. Read more1.5.0 · Source§fn gt<I>(self, other: I) -> bool
fn gt<I>(self, other: I) -> bool
Iterator
are lexicographically
greater than those of another. Read more1.5.0 · Source§fn ge<I>(self, other: I) -> bool
fn ge<I>(self, other: I) -> bool
Iterator
are lexicographically
greater than or equal to those of another. Read more1.82.0 · Source§fn is_sorted(self) -> bool
fn is_sorted(self) -> bool
1.82.0 · Source§fn is_sorted_by<F>(self, compare: F) -> bool
fn is_sorted_by<F>(self, compare: F) -> bool
1.82.0 · Source§fn is_sorted_by_key<F, K>(self, f: F) -> bool
fn is_sorted_by_key<F, K>(self, f: F) -> bool
Auto Trait Implementations§
impl<'a, K, V> Freeze for TestDBIter<'a, K, V>
impl<'a, K, V> RefUnwindSafe for TestDBIter<'a, K, V>where
K: RefUnwindSafe,
V: RefUnwindSafe,
impl<'a, K, V> !Send for TestDBIter<'a, K, V>
impl<'a, K, V> Sync for TestDBIter<'a, K, V>
impl<'a, K, V> Unpin for TestDBIter<'a, K, V>
impl<'a, K, V> UnwindSafe for TestDBIter<'a, K, V>where
K: UnwindSafe,
V: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<I> IntoIterator for Iwhere
I: Iterator,
impl<I> IntoIterator for Iwhere
I: Iterator,
Source§impl<I> IteratorRandom for Iwhere
I: Iterator,
impl<I> IteratorRandom for Iwhere
I: Iterator,
Source§fn choose<R>(self, rng: &mut R) -> Option<Self::Item>
fn choose<R>(self, rng: &mut R) -> Option<Self::Item>
Source§fn choose_stable<R>(self, rng: &mut R) -> Option<Self::Item>
fn choose_stable<R>(self, rng: &mut R) -> Option<Self::Item>
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.