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]
impl Endianness
pub fn system() -> Endianness
[src]
pub fn system() -> Endianness
Obtain this system's endianness
pub fn opposite(&self) -> Endianness
[src]
pub fn opposite(&self) -> Endianness
The opposite endianness: Little Endian returns Big Endian and vice versa.
pub fn read_i16<S>(&self, src: S) -> IoResult<i16> where
S: Read,
[src]
pub fn read_i16<S>(&self, src: S) -> IoResult<i16> where
S: Read,
Read a primitive value with this endianness from the given source.
pub fn read_u16<S>(&self, src: S) -> IoResult<u16> where
S: Read,
[src]
pub fn read_u16<S>(&self, src: S) -> IoResult<u16> where
S: Read,
Read a primitive value with this endianness from the given source.
pub fn read_i32<S>(&self, src: S) -> IoResult<i32> where
S: Read,
[src]
pub fn read_i32<S>(&self, src: S) -> IoResult<i32> where
S: Read,
Read a primitive value with this endianness from the given source.
pub fn read_u32<S>(&self, src: S) -> IoResult<u32> where
S: Read,
[src]
pub fn read_u32<S>(&self, src: S) -> IoResult<u32> where
S: Read,
Read a primitive value with this endianness from the given source.
pub fn read_i64<S>(&self, src: S) -> IoResult<i64> where
S: Read,
[src]
pub fn read_i64<S>(&self, src: S) -> IoResult<i64> where
S: Read,
Read a primitive value with this endianness from the given source.
pub fn read_u64<S>(&self, src: S) -> IoResult<u64> where
S: Read,
[src]
pub fn read_u64<S>(&self, src: S) -> IoResult<u64> where
S: Read,
Read a primitive value with this endianness from the given source.
pub fn read_f32<S>(&self, src: S) -> IoResult<f32> where
S: Read,
[src]
pub fn read_f32<S>(&self, src: S) -> IoResult<f32> where
S: Read,
Read a primitive value with this endianness from the given source.
pub fn read_f64<S>(&self, src: S) -> IoResult<f64> where
S: Read,
[src]
pub fn read_f64<S>(&self, src: S) -> IoResult<f64> where
S: Read,
Read a primitive value with this endianness from the given source.
Trait Implementations
impl Debug for Endianness
[src]
impl Debug for Endianness
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl PartialEq for Endianness
[src]
impl PartialEq for Endianness
fn eq(&self, other: &Endianness) -> bool
[src]
fn eq(&self, other: &Endianness) -> 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[src]
fn ne(&self, other: &Rhs) -> bool
This method tests for !=
.
impl Eq for Endianness
[src]
impl Eq for Endianness
impl Clone for Endianness
[src]
impl Clone for Endianness
fn clone(&self) -> Endianness
[src]
fn clone(&self) -> Endianness
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for Endianness
[src]
impl Copy for Endianness
Auto Trait Implementations
impl Send for Endianness
impl Send for Endianness
impl Sync for Endianness
impl Sync for Endianness