Function tupl::is_unit

source ·
pub const fn is_unit<T: Tuple>() -> bool
Expand description

Whether or not this tuple type is the empty tuple.

Examples

assert!(is_unit::<()>());
assert!(!is_unit::<(i32,)>());