Struct nifti::extension::Extender [−][src]
pub struct Extender(_);
Data type for the extender code.
Methods
impl Extender
[src]
impl Extender
pub fn from_stream<S: Read>(source: S) -> Result<Self>
[src]
pub fn from_stream<S: Read>(source: S) -> Result<Self>
Fetch the extender code from the given source, while expecting it to exist.
pub fn from_stream_optional<S: Read>(source: S) -> Result<Option<Self>>
[src]
pub fn from_stream_optional<S: Read>(source: S) -> Result<Option<Self>>
Fetch the extender code from the given source, while
being possible to not be available.
Returns None
if the source reaches EoF prematurely.
Any other I/O error is delegated to a NiftiError
.
pub fn has_extensions(&self) -> bool
[src]
pub fn has_extensions(&self) -> bool
Whether extensions should exist upon this extender code.
pub fn as_bytes(&self) -> &[u8; 4]
[src]
pub fn as_bytes(&self) -> &[u8; 4]
Get the extender's bytes
Trait Implementations
impl Debug for Extender
[src]
impl Debug for Extender
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 Default for Extender
[src]
impl Default for Extender
impl PartialEq for Extender
[src]
impl PartialEq for Extender
fn eq(&self, other: &Extender) -> bool
[src]
fn eq(&self, other: &Extender) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Extender) -> bool
[src]
fn ne(&self, other: &Extender) -> bool
This method tests for !=
.
impl Clone for Extender
[src]
impl Clone for Extender
fn clone(&self) -> Extender
[src]
fn clone(&self) -> Extender
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)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for Extender
[src]
impl Copy for Extender
impl From<[u8; 4]> for Extender
[src]
impl From<[u8; 4]> for Extender