pub trait Count {
const COUNT: usize;
}Expand description
A trait for getting the number of type arguments in a type.
This is implemented for Or types and tuples.
§Examples
use orn::{Count, Or3};
assert_eq!(Or3::<u8, u16, u32>::COUNT, 3);
assert_eq!(<(u8, u16, u32)>::COUNT, 3);Required Associated Constants§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.