ppv_lite86

Trait StoreBytes

Source
pub trait StoreBytes {
    // Required methods
    unsafe fn unsafe_read_le(input: &[u8]) -> Self;
    unsafe fn unsafe_read_be(input: &[u8]) -> Self;
    fn write_le(self, out: &mut [u8]);
    fn write_be(self, out: &mut [u8]);
}

Required Methods§

Source

unsafe fn unsafe_read_le(input: &[u8]) -> Self

§Safety

Caller must ensure the type of Self is appropriate for the hardware of the execution environment.

Source

unsafe fn unsafe_read_be(input: &[u8]) -> Self

§Safety

Caller must ensure the type of Self is appropriate for the hardware of the execution environment.

Source

fn write_le(self, out: &mut [u8])

Source

fn write_be(self, out: &mut [u8])

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§