Type Definition tupleops::Head[][src]

pub type Head<Tpl> = <Tpl as TupleUnprepend<Tpl>>::Head;
This is supported on crate feature unprepend only.
Expand description

The type of the first element of the tuple.

use same_types::assert_same_types;
use tupleops::Head;

assert_same_types!(
    Head<(u8, u16, u32)>,
    u8,
);

See also: unprepend(), Tail, TupleUnprepend.