Enum nifti::Endianness
[−]
[src]
pub enum Endianness { LE, BE, }
Enumerate for the two kinds of endianness possible by the standard.
Variants
LE
Little Endian
BE
Big Endian
Methods
impl Endianness
[src]
fn system() -> Endianness
[src]
Obtain this system's endianness
fn opposite(&self) -> Endianness
[src]
The opposite endianness: Little Endian returns Big Endian and vice versa.
fn read_i16<S>(&self, src: S) -> IoResult<i16> where
S: Read,
[src]
S: Read,
Read a primitive value with this endianness from the given source.
fn read_u16<S>(&self, src: S) -> IoResult<u16> where
S: Read,
[src]
S: Read,
Read a primitive value with this endianness from the given source.
fn read_i32<S>(&self, src: S) -> IoResult<i32> where
S: Read,
[src]
S: Read,
Read a primitive value with this endianness from the given source.
fn read_u32<S>(&self, src: S) -> IoResult<u32> where
S: Read,
[src]
S: Read,
Read a primitive value with this endianness from the given source.
fn read_i64<S>(&self, src: S) -> IoResult<i64> where
S: Read,
[src]
S: Read,
Read a primitive value with this endianness from the given source.
fn read_u64<S>(&self, src: S) -> IoResult<u64> where
S: Read,
[src]
S: Read,
Read a primitive value with this endianness from the given source.
fn read_f32<S>(&self, src: S) -> IoResult<f32> where
S: Read,
[src]
S: Read,
Read a primitive value with this endianness from the given source.
fn read_f64<S>(&self, src: S) -> IoResult<f64> where
S: Read,
[src]
S: Read,
Read a primitive value with this endianness from the given source.
Trait Implementations
impl Debug for Endianness
[src]
impl PartialEq for Endianness
[src]
fn eq(&self, __arg_0: &Endianness) -> bool
[src]
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[src]
This method tests for !=
.
impl Eq for Endianness
[src]
impl Clone for Endianness
[src]
fn clone(&self) -> Endianness
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more