[][src]Trait nifti::object::NiftiObject

pub trait NiftiObject {
    type Volume: NiftiVolume;
    pub fn header(&self) -> &NiftiHeader;
pub fn header_mut(&mut self) -> &mut NiftiHeader;
pub fn extensions(&self) -> &ExtensionSequence;
pub fn volume(&self) -> &Self::Volume;
pub fn into_volume(self) -> Self::Volume; }

Trait type for all possible implementations of owning NIFTI-1 objects. Objects contain a NIFTI header, a volume, and a possibly empty extension sequence.

Associated Types

type Volume: NiftiVolume[src]

The concrete type of the volume.

Loading content...

Required methods

pub fn header(&self) -> &NiftiHeader[src]

Obtain a reference to the NIFTI header.

pub fn header_mut(&mut self) -> &mut NiftiHeader[src]

Obtain a mutable reference to the NIFTI header.

pub fn extensions(&self) -> &ExtensionSequence[src]

Obtain a reference to the object's extensions.

pub fn volume(&self) -> &Self::Volume[src]

Obtain a reference to the object's volume.

pub fn into_volume(self) -> Self::Volume[src]

Move the volume out of the object, discarding the header and extensions.

Loading content...

Implementors

impl<V> NiftiObject for GenericNiftiObject<V> where
    V: NiftiVolume
[src]

type Volume = V

Loading content...