Trait rend::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

§

type Storage = u32

source§

impl Primitive for f32

§

type Storage = f32

source§

impl Primitive for f64

§

type Storage = f64

source§

impl Primitive for i16

§

type Storage = i16

source§

impl Primitive for i32

§

type Storage = i32

source§

impl Primitive for i64

§

type Storage = i64

source§

impl Primitive for i128

source§

impl Primitive for u16

§

type Storage = u16

source§

impl Primitive for u32

§

type Storage = u32

source§

impl Primitive for u64

§

type Storage = 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§