pub const fn type_chewer_nty<const MAX: usize>(
nty: &NamedType,
) -> ([Option<&NamedType>; MAX], usize)
Expand description
This function collects the set of unique types, reporting the entire list (which might only be partially used), as well as the used length.
The parameter MAX should be the highest possible number of unique types,
if NONE of the types have any duplication. This should be calculated using
unique_types_nty_upper()
. This upper bound allows us to pre-allocate
enough storage for the collection process.