[−][src]Enum nifti::error::NiftiError
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
.
The field dim
is in an invalid state, as a consequence of
dim[0]
or one of the elements in 1..dim[0] + 1
not being
positive.
Attempted to read volume outside boundaries.
AxisOutOfBounds(u16)
Attempted to read a volume over a volume's unexistent dimension.
MissingVolumeFile(IOError)
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.
Inconsistent or unsupported volume size (due to one or more dimensions being too large).
UnsupportedDataType(NiftiType)
This voxel data type is not supported. Sorry. :(
Io(IOError)
I/O Error
Raw data buffer length and volume dimensions are incompatible
IncorrectDescriptionLength(usize)
Description length must be lower than or equal to 80 bytes
Header contains a code which is not valid for the given attribute
Trait Implementations
impl Debug for NiftiError
[src]
impl Display for NiftiError
[src]
impl Error for NiftiError
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<Error> for NiftiError
[src]
pub fn from(err: IOError) -> NiftiError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for NiftiError
impl Send for NiftiError
impl Sync for NiftiError
impl Unpin for NiftiError
impl !UnwindSafe for NiftiError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn is_in_subset(&self) -> bool
pub fn to_subset_unchecked(&self) -> SS
pub fn from_subset(element: &SS) -> SP
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,