LenType

Trait LenType 

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

Source§

impl LenType for u8

Source§

impl LenType for u16

Source§

impl LenType for u32

Source§

impl LenType for usize

Implementors§