TupleSplit

A trait for splitting a tuple into head element and a tail tuple, as well as reconstructing from them.

Fully qualified path: core::metaprogramming::TupleSplit

pub(crate) trait TupleSplit<T>

Trait functions

split_head

Splits the tuple into the head and the rest.

Fully qualified path: core::metaprogramming::TupleSplit::split_head

fn split_head(self: T) -> (Self::Head, Self::Rest) nopanic

reconstruct

Reconstructs the tuple from the head and the rest.

Fully qualified path: core::metaprogramming::TupleSplit::reconstruct

fn reconstruct(head: Self::Head, rest: Self::Rest) -> T nopanic

Trait types

The type of the first element of the tuple.

Fully qualified path: core::metaprogramming::TupleSplit::Head

type Head;

Rest

The type of the rest of the tuple.

Fully qualified path: core::metaprogramming::TupleSplit::Rest

type Rest;