ImmutableFromIntoBytes

Trait ImmutableFromIntoBytes 

Source
pub unsafe trait ImmutableFromIntoBytes: Sealed { }
Expand description

A type that is can be safely converted to an initialized sequence of bytes, from an arbitrary initialized sequence of bytes, and does not feature interior mutability.

The requirements on implementors of this trait are effectively the same as the combination of zerocopy’s FromBytes, IntoBytes, and Immutable traits.

This trait is only implemented for a few select primitives, intended to be used for DMA operations. It is sealed; all extensions to future types must ensure they conform to the above trait’s requirements and are safe for DMA operations.

Implementations on Foreign Types§

Source§

impl ImmutableFromIntoBytes for u8

Source§

impl ImmutableFromIntoBytes for u16

Source§

impl ImmutableFromIntoBytes for u32

Source§

impl ImmutableFromIntoBytes for u64

Source§

impl ImmutableFromIntoBytes for u128

Implementors§