pub trait TransferCounter:
Copy
+ Ord
+ Debug
+ Display {
const ZERO: Self;
// Required method
fn checked_add_chunk(self, chunk_len: usize) -> Option<Self>;
}Expand description
Required Associated Constants§
Required Methods§
Sourcefn checked_add_chunk(self, chunk_len: usize) -> Option<Self>
fn checked_add_chunk(self, chunk_len: usize) -> Option<Self>
Add a chunk length to the current count.
Returns None when the new cumulative count cannot be represented by
this counter type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".