pub trait MultiValueConstLength {
const MULTI_VALUE_CONST_LEN: usize;
}
Expand description
Indicates that a multi-value has a fixed (constant) number of single items contained.
This applies to:
- single items
- multi-value tuples
Required Associated Constants§
Sourceconst MULTI_VALUE_CONST_LEN: usize
const MULTI_VALUE_CONST_LEN: usize
The fixed (constant) number of single items contained a multi-value.
Its value is:
- for single items: 1,
- for multi-value tuples: the sum of the fixed lengths of their items, if applicable.
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.