Struct frunk_core::indices::Here

source ·
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

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.
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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.