Enum byteorder::BigEndian
[−]
[src]
pub enum BigEndian {}
Defines big-endian serialization.
Note that this type has no value constructor. It is used purely at the type level.
Trait Implementations
impl PartialOrd for BigEndian
[src]
fn partial_cmp(&self, __arg_0: &BigEndian) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool
1.0.0
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &Rhs) -> bool
1.0.0
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &Rhs) -> bool
1.0.0
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
impl PartialEq for BigEndian
[src]
fn eq(&self, __arg_0: &BigEndian) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0
This method tests for !=
.
impl Ord for BigEndian
[src]
fn cmp(&self, __arg_0: &BigEndian) -> Ordering
This method returns an Ordering
between self
and other
. Read more
impl Hash for BigEndian
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher
1.3.0
Feeds a slice of this type into the state provided.
impl Eq for BigEndian
[src]
impl Debug for BigEndian
[src]
impl Copy for BigEndian
[src]
impl Clone for BigEndian
[src]
fn clone(&self) -> BigEndian
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Default for BigEndian
[src]
impl ByteOrder for BigEndian
[src]
fn read_u16(buf: &[u8]) -> u16
Reads an unsigned 16 bit integer from buf
. Read more
fn read_u32(buf: &[u8]) -> u32
Reads an unsigned 32 bit integer from buf
. Read more
fn read_u64(buf: &[u8]) -> u64
Reads an unsigned 64 bit integer from buf
. Read more
fn read_uint(buf: &[u8], nbytes: usize) -> u64
Reads an unsigned n-bytes integer from buf
. Read more
fn write_u16(buf: &mut [u8], n: u16)
Writes an unsigned 16 bit integer n
to buf
. Read more
fn write_u32(buf: &mut [u8], n: u32)
Writes an unsigned 32 bit integer n
to buf
. Read more
fn write_u64(buf: &mut [u8], n: u64)
Writes an unsigned 64 bit integer n
to buf
. Read more
fn write_uint(buf: &mut [u8], n: u64, nbytes: usize)
Writes an unsigned integer n
to buf
using only nbytes
. Read more
fn read_i16(buf: &[u8]) -> i16
Reads a signed 16 bit integer from buf
. Read more
fn read_i32(buf: &[u8]) -> i32
Reads a signed 32 bit integer from buf
. Read more
fn read_i64(buf: &[u8]) -> i64
Reads a signed 64 bit integer from buf
. Read more
fn read_int(buf: &[u8], nbytes: usize) -> i64
Reads a signed n-bytes integer from buf
. Read more
fn read_f32(buf: &[u8]) -> f32
Reads a IEEE754 single-precision (4 bytes) floating point number. Read more
fn read_f64(buf: &[u8]) -> f64
Reads a IEEE754 double-precision (8 bytes) floating point number. Read more
fn write_i16(buf: &mut [u8], n: i16)
Writes a signed 16 bit integer n
to buf
. Read more
fn write_i32(buf: &mut [u8], n: i32)
Writes a signed 32 bit integer n
to buf
. Read more
fn write_i64(buf: &mut [u8], n: i64)
Writes a signed 64 bit integer n
to buf
. Read more
fn write_int(buf: &mut [u8], n: i64, nbytes: usize)
Writes a signed integer n
to buf
using only nbytes
. Read more
fn write_f32(buf: &mut [u8], n: f32)
Writes a IEEE754 single-precision (4 bytes) floating point number. Read more
fn write_f64(buf: &mut [u8], n: f64)
Writes a IEEE754 double-precision (8 bytes) floating point number. Read more