pub trait Item {
type Sum: Summary;
// Required method
fn summary(&self) -> Self::Sum;
}Expand description
An item of a Sums and what it adds up to by itself.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".