Struct nifti::extension::Extender
[−]
[src]
pub struct Extender(_);
Data type for the extender code.
Methods
impl Extender
[src]
fn from_stream<S: Read>(source: S) -> Result<Self>
[src]
Fetch the extender code from the given source, while expecting it to exist.
fn from_stream_optional<S: Read>(source: S) -> Result<Option<Self>>
[src]
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
.
fn has_extensions(&self) -> bool
[src]
Whether extensions should exist upon this extender code.
fn as_bytes(&self) -> &[u8; 4]
[src]
Get the extender's bytes
Trait Implementations
impl Debug for Extender
[src]
impl Default for Extender
[src]
impl PartialEq for Extender
[src]
fn eq(&self, __arg_0: &Extender) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Extender) -> bool
[src]
This method tests for !=
.
impl Clone for Extender
[src]
fn clone(&self) -> Extender
[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