pub trait VirtualStaticBound<Discriminant: DiscriminantTag = ()> {
const BOUND: usize;
}Expand description
Provides the bounds associated with a VirtualStaticField<Discriminant>.
VirtualStaticBound defines constraints (such as capacity limits)
that are fully determined at compile time.
§Representation
The bound is provided as a const, meaning:
- it is a compile-time constant
- no runtime resolution or indirection is involved
This enables fully static, zero-overhead representations.
§Discriminant
The Discriminant links a field to its corresponding bound,
allowing multiple independent fields to coexist without ambiguity.
§Default Discriminant
Discriminant = (): provides a single default bound, meaning only one dynamically bounded field is assumed.
Required Associated Constants§
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.
Implementations on Foreign Types§
Source§impl VirtualStaticBound for ()
No-op bound provided with zero capacity.
impl VirtualStaticBound for ()
No-op bound provided with zero capacity.