pub trait BoundedIndex:
AsPrimitive<usize>
+ Zeroable
+ Copy
+ Send
+ Sync
+ Debug
+ Sealed
+ 'static {
type Length: From<Self> + AsPrimitive<usize> + Copy + Send + Sync + Debug + 'static;
const MAX_LEN: usize;
const MAX_LENGTH: Self::Length;
}Expand description
A trait for unsigned integer types that can be used as indices.
Required Associated Constants§
Sourceconst MAX_LENGTH: Self::Length
const MAX_LENGTH: Self::Length
The maximum length supported by this index type.
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.