Trait Pad

Source
pub trait Pad: Copy + Sealed {
    const VALUE: Self;
}
Expand description

A padding type.

Types implementing Pad have only one valid bit-pattern.

This trait is provided so that downstream crates may construct pad values generically within const fn’s.

Required Associated Constants§

Source

const VALUE: Self

The only valid Pad value.

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.

Implementors§

Source§

impl Pad for PadU0

Source§

const VALUE: Self

Source§

impl Pad for PadU8

Source§

const VALUE: Self

Source§

impl Pad for PadU16

Source§

const VALUE: Self

Source§

impl Pad for PadU32

Source§

const VALUE: Self

Source§

impl Pad for PadU64

Source§

const VALUE: Self