pub trait Sum {
fn sum(self, other: Self) -> Self;
}
Expand description
Trait defining the sum of two numbers.
For bool
this is the same as boolean OR; otherwise it’s the same as Add
.
pub trait Sum {
fn sum(self, other: Self) -> Self;
}
Trait defining the sum of two numbers.
For bool
this is the same as boolean OR; otherwise it’s the same as Add
.