pub enum FitsFormatError {
Show 14 variants
UnexpectedStrSep,
IllegalAscii,
IllegalAsciiAfterString(u8),
IllegalAsciiAfterQuote(u8),
Unterminated,
UnexpectedByte30,
EmptyRecordInt,
ExpectedDigit(u8),
MalformedNaxis,
ExpectedDigitNaxisHeader(u8),
ExpectedSpaceNaxisHeader(u8),
MisnumberedNaxis {
expected: usize,
got: usize,
},
NegativeNaxisValue {
value: usize,
n: isize,
},
Utf8(Utf8Error),
}
Expand description
An error type associated with problems that might occur when reading a FITS file.
Variants§
UnexpectedStrSep
IllegalAscii
IllegalAsciiAfterString(u8)
IllegalAsciiAfterQuote(u8)
Unterminated
UnexpectedByte30
EmptyRecordInt
ExpectedDigit(u8)
MalformedNaxis
ExpectedDigitNaxisHeader(u8)
ExpectedSpaceNaxisHeader(u8)
MisnumberedNaxis
NegativeNaxisValue
Utf8(Utf8Error)
Trait Implementations§
Source§impl Debug for FitsFormatError
impl Debug for FitsFormatError
Source§impl Display for FitsFormatError
impl Display for FitsFormatError
Source§impl Error for FitsFormatError
impl Error for FitsFormatError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl From<FitsFormatError> for FitsError
impl From<FitsFormatError> for FitsError
Source§fn from(source: FitsFormatError) -> Self
fn from(source: FitsFormatError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for FitsFormatError
impl RefUnwindSafe for FitsFormatError
impl Send for FitsFormatError
impl Sync for FitsFormatError
impl Unpin for FitsFormatError
impl UnwindSafe for FitsFormatError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more