Struct nifti::extension::ExtensionSequence [−][src]
pub struct ExtensionSequence { /* fields omitted */ }
Data type for aggregating the extender code and all extensions.
Methods
impl ExtensionSequence
[src]
impl ExtensionSequence
pub fn from_stream<B: ByteOrder, S: Read>(
extender: Extender,
source: S,
len: usize
) -> Result<Self>
[src]
pub fn from_stream<B: ByteOrder, S: Read>(
extender: Extender,
source: S,
len: usize
) -> Result<Self>
Read a sequence of extensions from a source, up until len
bytes.
pub fn iter(&self) -> Iter<Extension>
[src]
pub fn iter(&self) -> Iter<Extension>
Obtain an iterator to the extensions.
pub fn is_empty(&self) -> bool
[src]
pub fn is_empty(&self) -> bool
Whether the sequence of extensions is empty.
pub fn len(&self) -> usize
[src]
pub fn len(&self) -> usize
Obtain the number of extensions available.
pub fn extender(&self) -> Extender
[src]
pub fn extender(&self) -> Extender
Get the extender code from this extension sequence.
Trait Implementations
impl Debug for ExtensionSequence
[src]
impl Debug for ExtensionSequence
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 ExtensionSequence
[src]
impl PartialEq for ExtensionSequence
fn eq(&self, other: &ExtensionSequence) -> bool
[src]
fn eq(&self, other: &ExtensionSequence) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &ExtensionSequence) -> bool
[src]
fn ne(&self, other: &ExtensionSequence) -> bool
This method tests for !=
.
impl Clone for ExtensionSequence
[src]
impl Clone for ExtensionSequence
fn clone(&self) -> ExtensionSequence
[src]
fn clone(&self) -> ExtensionSequence
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 IntoIterator for ExtensionSequence
[src]
impl IntoIterator for ExtensionSequence
type Item = Extension
The type of the elements being iterated over.
type IntoIter = IntoIter<Self::Item>
Which kind of iterator are we turning this into?
fn into_iter(self) -> Self::IntoIter
[src]
fn into_iter(self) -> Self::IntoIter
Creates an iterator from a value. Read more
impl<'a> IntoIterator for &'a ExtensionSequence
[src]
impl<'a> IntoIterator for &'a ExtensionSequence
Auto Trait Implementations
impl Send for ExtensionSequence
impl Send for ExtensionSequence
impl Sync for ExtensionSequence
impl Sync for ExtensionSequence