Skip to main content

UnsignedWidth

Trait UnsignedWidth 

Source
pub trait UnsignedWidth: Sealed + TryFrom<u64> {
    const NAME: &'static str;
}
Expand description

An unsigned integer type a decoded Unsigned or ENUMERATED is narrowed to: u8, u16, u32 or u64. Sealed, so no other type implements it.

Required Associated Constants§

Source

const NAME: &'static str

The type’s name, for the error when a value doesn’t fit it.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl UnsignedWidth for u8

Source§

const NAME: &'static str = "u8"

Source§

impl UnsignedWidth for u16

Source§

const NAME: &'static str = "u16"

Source§

impl UnsignedWidth for u32

Source§

const NAME: &'static str = "u32"

Source§

impl UnsignedWidth for u64

Source§

const NAME: &'static str = "u64"

Implementors§