pub trait Sum {
type Output;
// Required method
fn sum(&self) -> Self::Output;
}
Expand description
Type that represents the sum of elements
pub trait Sum {
type Output;
// Required method
fn sum(&self) -> Self::Output;
}
Type that represents the sum of elements