Module bounded

Module bounded 

Source
Expand description

Types and utilities related to bounded integers.

Structs§

BoundedU8
Wrapper type for a u8, providing minimum and maximum value bounds.
BoundedU16
Wrapper type for a u16, providing minimum and maximum value bounds.
BoundedU32
Wrapper type for a u32, providing minimum and maximum value bounds.
BoundedU64
Wrapper type for a u64, providing minimum and maximum value bounds.
InvalidBoundedU8
Error encountered when attempting to wrap a u8 that is not within the given bounds.
InvalidBoundedU16
Error encountered when attempting to wrap a u16 that is not within the given bounds.
InvalidBoundedU32
Error encountered when attempting to wrap a u32 that is not within the given bounds.
InvalidBoundedU64
Error encountered when attempting to wrap a u64 that is not within the given bounds.

Enums§

TryIntoBoundedU8Error
Error encountered when attempting to convert a usize into a BoundedU8.
TryIntoBoundedU16Error
Error encountered when attempting to convert a usize into a BoundedU16.
TryIntoBoundedU32Error
Error encountered when attempting to convert a usize into a BoundedU32.
TryIntoBoundedU64Error
Error encountered when attempting to convert a usize into a BoundedU64.

Traits§

Bounded
Trait that provides an interface for bounded types.