Skip to main content

ByteOrder

Trait ByteOrder 

Source
pub trait ByteOrder {
    // Required methods
    fn read_u16(buf: &[u8]) -> u16;
    fn read_u32(buf: &[u8]) -> u32;
}

Required Methods§

Source

fn read_u16(buf: &[u8]) -> u16

Source

fn read_u32(buf: &[u8]) -> u32

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§