Type Alias gimli::endianity::NativeEndian

source ·
pub type NativeEndian = LittleEndian;
Expand description

The native endianity for the target platform.

Aliased Type§

struct NativeEndian;

Trait Implementations§

source§

impl Clone for LittleEndian

source§

fn clone(&self) -> LittleEndian

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for LittleEndian

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for LittleEndian

source§

fn default() -> LittleEndian

Returns the “default value” for a type. Read more
source§

impl Endianity for LittleEndian

source§

fn is_big_endian(self) -> bool

Return true for big endian byte order.
source§

fn is_little_endian(self) -> bool

Return true for little endian byte order.
source§

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

Reads an unsigned 16 bit integer from buf. Read more
source§

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

Reads an unsigned 32 bit integer from buf. Read more
source§

fn read_u64(self, buf: &[u8]) -> u64

Reads an unsigned 64 bit integer from buf. Read more
source§

fn read_uint(&mut self, buf: &[u8]) -> u64

Read an unsigned n-bytes integer u64. Read more
source§

fn read_i16(self, buf: &[u8]) -> i16

Reads a signed 16 bit integer from buf. Read more
source§

fn read_i32(self, buf: &[u8]) -> i32

Reads a signed 32 bit integer from buf. Read more
source§

fn read_i64(self, buf: &[u8]) -> i64

Reads a signed 64 bit integer from buf. Read more
source§

fn read_f32(self, buf: &[u8]) -> f32

Reads a 32 bit floating point number from buf. Read more
source§

fn read_f64(self, buf: &[u8]) -> f64

Reads a 32 bit floating point number from buf. Read more
source§

fn write_u16(self, buf: &mut [u8], n: u16)

Writes an unsigned 16 bit integer n to buf. Read more
source§

fn write_u32(self, buf: &mut [u8], n: u32)

Writes an unsigned 32 bit integer n to buf. Read more
source§

fn write_u64(self, buf: &mut [u8], n: u64)

Writes an unsigned 64 bit integer n to buf. Read more
source§

impl Hash for LittleEndian

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl PartialEq<LittleEndian> for LittleEndian

source§

fn eq(&self, other: &LittleEndian) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for LittleEndian

source§

impl Eq for LittleEndian

source§

impl StructuralEq for LittleEndian

source§

impl StructuralPartialEq for LittleEndian