pub struct Here { /* fields omitted */ }
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.
Implementation when the pluck target key is in the head.
Returns a pair consisting of the value pointed to by the target key and the remainder.
fn inject(to_insert: I) -> Self
Instantiate a coproduct from an element. Read more
Attempt to extract a value from a coproduct (or get the remaining possibilities). Read more
Borrow an element from a coproduct by type. Read more
Retrieve an element from a coproduct by type, ignoring all others. Read more
Performs the indexed conversion.
Implementation when the pluck target is in head
What is left after you pluck the target from the Self
Remove an element by type from an HList. Read more
Borrow an element by type from an HList. Read more
Mutably borrow an element by type from an HList. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
Extract a subset of the possible types in a coproduct (or get the remaining possibilities) Read more
impl<T, U> Into<U> for T where
U: From<T>,
Performs the indexed conversion.
Consumes the current HList and returns an HList with the requested shape. Read more
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.