pub trait Tally:
Copy
+ Default
+ Send
+ Sync {
// Required methods
fn add(self, y: Self) -> Self;
fn low(n: i64) -> Self;
}Expand description
An integer type that sums Terms, wrapping where a sum doesn’t fit: u8, i16, i32 or i64. A caller picks one that holds every sum it needs. A count of fewer than 256 Booleans fits a byte, which takes an eighth of the memory of an i64.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".