Struct frunk_core::indices::There
source · pub struct There<T> { /* private fields */ }
Expand description
Used as an index into an HList
.
There<T>
is 1 + T
.
Users should normally allow type inference to create this type.
Trait Implementations§
source§impl<Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for HCons<Head, Tail>where
Tail: ByNameFieldPlucker<K, TailIndex>,
impl<Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for HCons<Head, Tail>where
Tail: ByNameFieldPlucker<K, TailIndex>,
Implementation when the pluck target key is in the tail.
type TargetValue = <Tail as ByNameFieldPlucker<K, TailIndex>>::TargetValue
type Remainder = HCons<Head, <Tail as ByNameFieldPlucker<K, TailIndex>>::Remainder>
source§fn pluck_by_name(self) -> (Field<K, Self::TargetValue>, Self::Remainder)
fn pluck_by_name(self) -> (Field<K, Self::TargetValue>, Self::Remainder)
Returns a pair consisting of the value pointed to by the target key and the remainder.
source§impl<Head, I, Tail, TailIndex> CoprodInjector<I, There<TailIndex>> for Coproduct<Head, Tail>where
Tail: CoprodInjector<I, TailIndex>,
impl<Head, I, Tail, TailIndex> CoprodInjector<I, There<TailIndex>> for Coproduct<Head, Tail>where
Tail: CoprodInjector<I, TailIndex>,
source§impl<Hd, Tl, T, N> CoprodUninjector<T, There<N>> for Coproduct<Hd, Tl>where
Tl: CoprodUninjector<T, N>,
impl<Hd, Tl, T, N> CoprodUninjector<T, There<N>> for Coproduct<Hd, Tl>where
Tl: CoprodUninjector<T, N>,
source§impl<Head, FromTail, Tail, TailIndex> CoproductSelector<FromTail, There<TailIndex>> for Coproduct<Head, Tail>where
Tail: CoproductSelector<FromTail, TailIndex>,
impl<Head, FromTail, Tail, TailIndex> CoproductSelector<FromTail, There<TailIndex>> for Coproduct<Head, Tail>where
Tail: CoproductSelector<FromTail, TailIndex>,
source§impl<Head, FromTail, Tail, TailIndex> CoproductTaker<FromTail, There<TailIndex>> for Coproduct<Head, Tail>where
Tail: CoproductTaker<FromTail, TailIndex>,
impl<Head, FromTail, Tail, TailIndex> CoproductTaker<FromTail, There<TailIndex>> for Coproduct<Head, Tail>where
Tail: CoproductTaker<FromTail, TailIndex>,
source§impl<Head, Tail, FromTail, TailIndex> Plucker<FromTail, There<TailIndex>> for HCons<Head, Tail>where
Tail: Plucker<FromTail, TailIndex>,
impl<Head, Tail, FromTail, TailIndex> Plucker<FromTail, There<TailIndex>> for HCons<Head, Tail>where
Tail: Plucker<FromTail, TailIndex>,
Implementation when the pluck target is in the tail
Auto Trait Implementations§
impl<T> Freeze for There<T>
impl<T> RefUnwindSafe for There<T>where
T: RefUnwindSafe,
impl<T> Send for There<T>where
T: Send,
impl<T> Sync for There<T>where
T: Sync,
impl<T> Unpin for There<T>where
T: Unpin,
impl<T> UnwindSafe for There<T>where
T: 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