pub trait StaticCap {
type Cap: Capacity + StaticCap;
const CAP: Self::Cap;
}Expand description
A type with an associated static capacity constraint.
§Note on Compatibility
Success on a compatibility check means that the iterator’s declared bounds
(from Iterator::size_hint) do not contradict the capacity constraints.
See Capacity and Capacity for details.
Required Associated Constants§
Required Associated Types§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.