pub fn tuple_arity<T: Arity>(_: &T) -> usizeExpand description
Gets the arity of the specified value.
ยงExample
use tuple_arity::*;
assert_eq!(0, tuple_arity(&()));
assert_eq!(1, tuple_arity(&("foo",)));
assert_eq!(2, tuple_arity(&("foo", "bar")));
assert_eq!(3, tuple_arity(&("foo", "bar", "baz")));