pub struct FilterKv<M, F> { /* private fields */ }Expand description
See filter_kv
Trait Implementations§
Source§impl<'a, K: 'a + ?Sized, V: 'a + ?Sized, M: RoMap<'a, K, V>, F: Fn(&'a K, &'a V) -> bool + Copy + 'a> RoMap<'a, K, V> for FilterKv<M, F>
impl<'a, K: 'a + ?Sized, V: 'a + ?Sized, M: RoMap<'a, K, V>, F: Fn(&'a K, &'a V) -> bool + Copy + 'a> RoMap<'a, K, V> for FilterKv<M, F>
Source§const ITER_ORDER_SORTED: bool = M::ITER_ORDER_SORTED
const ITER_ORDER_SORTED: bool = M::ITER_ORDER_SORTED
If true, then all iterators returned by methods of this trait return elements sorted by their keys.
fn get_key_value(self, k: &K) -> Option<(&'a K, &'a V)>
fn iter(self) -> impl 'a + Iterator<Item = (&'a K, &'a V)>
fn contains_key(self, k: &K) -> bool
fn get(self, k: &K) -> Option<&'a V>
fn get_key(self, k: &K) -> Option<&'a K>
fn is_empty(self) -> bool
fn len(self) -> usize
fn keys(self) -> impl 'a + Iterator<Item = &'a K>
impl<M: Copy, F: Copy> Copy for FilterKv<M, F>
Auto Trait Implementations§
impl<M, F> Freeze for FilterKv<M, F>
impl<M, F> RefUnwindSafe for FilterKv<M, F>where
M: RefUnwindSafe,
F: RefUnwindSafe,
impl<M, F> Send for FilterKv<M, F>
impl<M, F> Sync for FilterKv<M, F>
impl<M, F> Unpin for FilterKv<M, F>
impl<M, F> UnwindSafe for FilterKv<M, F>where
M: UnwindSafe,
F: 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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more