pub trait ACMapBase {
// Required methods
fn with_capacity(capacity: usize) -> Self;
fn len(&self) -> usize;
fn clear(&mut self);
// Provided method
fn is_empty(&self) -> bool { ... }
}Expand description
Minimal interface for any “associative coefficient map” backing a
PauliSum — construction, length, and clear.
Implementations exist for HashMap, IndexMap, and DashMap; pick
one via a Config.
Required Methods§
Sourcefn with_capacity(capacity: usize) -> Self
fn with_capacity(capacity: usize) -> Self
Construct an empty map with at least capacity slots reserved.
Provided Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".