pub trait Tagged<A> {
type Tag: Copy + Eq + Debug;
// Required method
fn tag(&self, address: &A) -> Self::Tag;
}
Expand description
A type whose values can be used to produce “tag” values of a different type.
This can be used to provide a summary value, e.g. even or odd for an integer-like type.