[][src]Struct nifti::extension::ExtensionSequence

pub struct ExtensionSequence { /* fields omitted */ }

Data type for aggregating the extender code and all extensions.

Implementations

impl ExtensionSequence[src]

pub fn from_reader<S, E>(
    extender: Extender,
    mut source: ByteOrdered<S, E>,
    len: usize
) -> Result<Self> where
    S: Read,
    E: Endian
[src]

Read a sequence of extensions from a source, up until len bytes.

pub fn iter(&self) -> Iter<'_, Extension>[src]

Obtain an iterator to the extensions.

pub fn is_empty(&self) -> bool[src]

Whether the sequence of extensions is empty.

pub fn len(&self) -> usize[src]

Obtain the number of extensions available.

pub fn extender(&self) -> Extender[src]

Get the extender code from this extension sequence.

Trait Implementations

impl Clone for ExtensionSequence[src]

impl Debug for ExtensionSequence[src]

impl IntoIterator for ExtensionSequence[src]

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?

impl<'a> IntoIterator for &'a ExtensionSequence[src]

type Item = &'a Extension

The type of the elements being iterated over.

type IntoIter = Iter<'a, Extension>

Which kind of iterator are we turning this into?

impl PartialEq<ExtensionSequence> for ExtensionSequence[src]

impl StructuralPartialEq for ExtensionSequence[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<SS, SP> SupersetOf<SS> for SP where
    SS: SubsetOf<SP>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,