pub trait LenType: Sealed { }
Expand description
A sealed trait representing a valid type to use as a length for a container.
This cannot be implemented in user code, and is restricted to u8
, u16
, u32
, and usize
.
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§
impl LenType for u8
impl LenType for u16
impl LenType for u32
Available on 32-bit or 64-bit only.