pub trait SizeTracker: Clone {
const INIT: Self;
const IS_TRACKING: bool;
// Required methods
fn increment(&mut self);
fn decrement(&mut self);
fn get(&self) -> usize;
fn set(&mut self, size: usize);
fn swap(&mut self, other: &mut Self);
}Expand description
Trait for tracking the size of the list.
Required Associated Constants§
Sourceconst IS_TRACKING: bool
const IS_TRACKING: bool
True if this tracker actually tracks the size.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".