Trait VirtualDynBound

Source
pub trait VirtualDynBound<Discriminant: DiscriminantTag = ()> {
    type Bound: Get<u32> + Clone + Debug + 'static;
}
Expand description

Provides the bounds associated with a VirtualDynField<Discriminant>.

VirtualDynBound defines constraints (such as capacity limits) without requiring the field itself to hardcode them.

§Representation

The bound is provided as a type implementing [Get<u32>], meaning the value is resolved at runtime (or via type-level indirection).

This enables flexible, dynamically bounded behavior while still enforcing limits.

§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 Types§

Source

type Bound: Get<u32> + Clone + Debug + 'static

Implementations on Foreign Types§

Source§

impl VirtualDynBound for ()

No-op bound with zero capacity.

Source§

type Bound = ConstU32<0>

Implementors§