Enum nifti::error::NiftiError []

pub enum NiftiError {
    InvalidFormat,
    OutOfBounds(Vec<u16>),
    MissingVolumeFile(IOError),
    NoVolumeData,
    IncorrectVolumeDimensionality(u16u16),
    UnsupportedDataType(NiftiType),
    Io(IOError),
}

Error type for all error variants originated by this crate.

Variants

An invalid NIfTI-1 file was parsed. This is detected when reading the file's magic code, which should be either b"ni1\0" or b"n+1\0.

Attempted to read volume outside boundaries.

Could not retrieve a volume file based on the given header file.

An attempt to read a complete NIFTI-1 object from a header file was made. It can also be triggered when a NIFTI object contains the magic code "ni-1\0", even if the following bytes contain the volume.

An incorrect number of dimensions was provided when interacting with a volume.

This voxel data type is not supported. Sorry. :(

I/O Error

Trait Implementations

impl Debug for NiftiError
[src]

Formats the value using the given formatter.

impl Display for NiftiError

Formats the value using the given formatter. Read more

impl Error for NiftiError

A short description of the error. Read more

The lower-level cause of this error, if any. Read more

impl From<IOError> for NiftiError

Performs the conversion.