Trait metastruct::NumFields
source · pub trait NumFields<Selector> {
const NUM_FIELDS: usize;
}
Expand description
Trait for structs with a countable number of fields.
The Selector
type can be used to select different subsets of fields.
Implementations of this trait are intended to be written using the metastruct
macro
and the num_fields
attribute.