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<'a, Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for &'a HCons<Head, Tail>where
&'a Tail: ByNameFieldPlucker<K, TailIndex>,
Implementation when target is reference and the pluck target key is in the tail.
impl<'a, Head, Tail, K, TailIndex> ByNameFieldPlucker<K, There<TailIndex>> for &'a HCons<Head, Tail>where
&'a Tail: ByNameFieldPlucker<K, TailIndex>,
Implementation when target is reference and the pluck target key is in the tail.
type TargetValue = <&'a Tail as ByNameFieldPlucker<K, TailIndex>>::TargetValue
type Remainder = HCons<&'a Head, <&'a 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, 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.
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<'a, Head, Tail, FromTail, TailIndex> Plucker<&'a FromTail, There<TailIndex>> for &'a HCons<Head, Tail>
Implementation when target is reference the pluck target is in the tail
impl<'a, Head, Tail, FromTail, TailIndex> Plucker<&'a FromTail, There<TailIndex>> for &'a HCons<Head, Tail>
Implementation when target is reference the pluck target is in the tail
Source§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
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