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

pub trait NiftiObject {
    type Volume: NiftiVolume;
    fn header(&self) -> &NiftiHeader;
fn header_mut(&mut self) -> &mut NiftiHeader;
fn extensions(&self) -> &ExtensionSequence;
fn volume(&self) -> &Self::Volume;
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

The concrete type of the volume.

Required Methods

Obtain a reference to the NIFTI header.

Obtain a mutable reference to the NIFTI header.

Obtain a reference to the object's extensions.

Obtain a reference to the object's volume.

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

Implementors