Enum nifti::error::NiftiError[]

pub enum NiftiError {
    InvalidFormat,
    OutOfBounds(Vec<u16>),
    AxisOutOfBounds(u16),
    MissingVolumeFile(IOError),
    NoVolumeData,
    IncorrectVolumeDimensionality(u16u16),
    UnsupportedDataType(NiftiType),
    Io(IOError),
    IncompatibleLength,
    InvalidCode(&'static stri16),
}

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.

Attempted to read a volume over a volume's unexistent dimension.

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

Raw data and buffer length are incompatible

Header contains a code which is not valid for the given attribute

Trait Implementations

impl Debug for NiftiError
[src]

Formats the value using the given formatter. Read more

impl Display for NiftiError

Formats the value using the given formatter. Read more

impl Error for NiftiError

This method is soft-deprecated. Read more

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

impl From<IOError> for NiftiError

Performs the conversion.

Auto Trait Implementations

impl Send for NiftiError

impl Sync for NiftiError