rend

Trait Primitive

Source
pub unsafe trait Primitive {
    type Storage;
}
Expand description

A type that has an associated cross-endian storage type.

Required Associated Types§

Source

type Storage

An endian-agnostic type that can represent the primitve in both little- and big-endian forms.

Implementations on Foreign Types§

Source§

impl Primitive for char

Source§

impl Primitive for f32

Source§

impl Primitive for f64

Source§

impl Primitive for i16

Source§

impl Primitive for i32

Source§

impl Primitive for i64

Source§

impl Primitive for i128

Source§

impl Primitive for u16

Source§

impl Primitive for u32

Source§

impl Primitive for u64

Source§

impl Primitive for u128

Source§

impl Primitive for AtomicI16

Source§

impl Primitive for AtomicI32

Source§

impl Primitive for AtomicI64

Source§

impl Primitive for AtomicU16

Source§

impl Primitive for AtomicU32

Source§

impl Primitive for AtomicU64

Source§

impl Primitive for NonZeroI16

Source§

impl Primitive for NonZeroI32

Source§

impl Primitive for NonZeroI64

Source§

impl Primitive for NonZeroI128

Source§

impl Primitive for NonZeroU16

Source§

impl Primitive for NonZeroU32

Source§

impl Primitive for NonZeroU64

Source§

impl Primitive for NonZeroU128

Implementors§