pub struct Map<F, D: ?Sized>(pub F, pub D);Tuple Fields§
§0: F§1: DImplementations§
Trait Implementations§
Source§impl<'a, K: 'a, J: 'a, F, D> Discriminator<'a, K> for Map<F, D>
impl<'a, K: 'a, J: 'a, F, D> Discriminator<'a, K> for Map<F, D>
fn discriminate_sorted<V: 'a, I>( &'a self, pairs: I, ) -> DiscriminateSorted<'a, K, V> ⓘ
fn by_ref(&'a self) -> &'a Self
fn invert(self) -> Invert<Self>where
Self: Sized,
fn map_key<J: 'a, F>(self, f: F) -> Map<F, Self>
fn sum_left<J: 'a, D>(self, other: D) -> Sum<Self, D>where
Self: Sized,
D: Discriminator<'a, J>,
fn sum_right<J: 'a, D>(self, other: D) -> Sum<Self, D>where
Self: Sized,
D: Discriminator<'a, J>,
fn product_left<J: 'a, D>(self, other: D) -> Product<Self, D>where
Self: Sized,
D: Discriminator<'a, J>,
fn product_right<J: 'a, D>(self, other: D) -> Product<Self, D>where
Self: Sized,
D: Discriminator<'a, J>,
impl<F: Copy, D: Copy + ?Sized> Copy for Map<F, D>
Auto Trait Implementations§
impl<F, D> Freeze for Map<F, D>
impl<F, D> RefUnwindSafe for Map<F, D>
impl<F, D> Send for Map<F, D>
impl<F, D> Sync for Map<F, D>
impl<F, D> Unpin for Map<F, D>
impl<F, D> UnwindSafe for Map<F, D>
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