Trait Packable

Source
pub trait Packable:
    'static
    + Default
    + Copy
    + Send
    + Sync
    + PartialEq
    + Eq { }
Expand description

A trait to constrain types that can be packed into a packed value.

The Packable trait allows us to specify implementations for potentially conflicting types.

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.

Implementations on Foreign Types§

Source§

impl Packable for u8

Source§

impl Packable for u16

Source§

impl Packable for u32

Source§

impl Packable for u64

Source§

impl Packable for u128

Implementors§