pub struct Here { /* private fields */ }
Expand description
Used as an index into an HList
.
Here
is 0, pointing to the head of the HList.
Users should normally allow type inference to create this type.
Trait Implementations§
Source§impl<'a, K, V, Tail: ToRef<'a>> ByNameFieldPlucker<K, Here> for &'a HCons<Field<K, V>, Tail>
Implementation when target is reference and the pluck target key is in the head.
impl<'a, K, V, Tail: ToRef<'a>> ByNameFieldPlucker<K, Here> for &'a HCons<Field<K, V>, Tail>
Implementation when target is reference and the pluck target key is in the head.
type TargetValue = &'a V
type Remainder = <Tail as ToRef<'a>>::Output
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<K, V, Tail> ByNameFieldPlucker<K, Here> for HCons<Field<K, V>, Tail>
Implementation when the pluck target key is in the head.
impl<K, V, Tail> ByNameFieldPlucker<K, Here> for HCons<Field<K, V>, Tail>
Implementation when the pluck target key is in the head.
type TargetValue = V
type Remainder = Tail
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<I, Tail> CoprodInjector<I, Here> for Coproduct<I, Tail>
impl<I, Tail> CoprodInjector<I, Here> for Coproduct<I, Tail>
Source§impl<Hd, Tl> CoprodUninjector<Hd, Here> for Coproduct<Hd, Tl>
impl<Hd, Tl> CoprodUninjector<Hd, Here> for Coproduct<Hd, Tl>
Source§impl<Head, Tail> CoproductSelector<Head, Here> for Coproduct<Head, Tail>
impl<Head, Tail> CoproductSelector<Head, Here> for Coproduct<Head, Tail>
Source§impl<Head, Tail> CoproductTaker<Head, Here> for Coproduct<Head, Tail>
impl<Head, Tail> CoproductTaker<Head, Here> for Coproduct<Head, Tail>
Source§impl<'a, T, Tail: ToRef<'a>> Plucker<&'a T, Here> for &'a HCons<T, Tail>
Implementation when target is reference and the pluck target is in head
impl<'a, T, Tail: ToRef<'a>> Plucker<&'a T, Here> for &'a HCons<T, Tail>
Implementation when target is reference and the pluck target is in head
Auto Trait Implementations§
impl Freeze for Here
impl RefUnwindSafe for Here
impl Send for Here
impl Sync for Here
impl Unpin for Here
impl UnwindSafe for Here
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