pub enum EopError {
Field {
line: usize,
columns: Range<usize>,
},
Empty,
Header {
line: usize,
expected: &'static str,
},
NotMonotonic {
line: usize,
},
Gap {
after: f64,
before: f64,
},
OutOfRange {
mjd: f64,
first: f64,
last: f64,
},
}Expand description
Why an EOP record could not be read, or a query answered.
Variants§
Field
A field did not parse as a number.
Fields
Empty
The series held no usable rows.
Header
A C04 header line the records depend on is missing, or names what this reader cannot use.
Fields
NotMonotonic
Rows were not in ascending order of MJD.
Gap
The requested date falls in a hole in the series.
finals2000A is tabulated every day. A gap means the file was truncated or
spliced, and interpolating across it would quietly invent an Earth
orientation for days nobody observed.
Fields
OutOfRange
The requested date lies outside the tabulated span.
Trait Implementations§
Source§impl Error for EopError
impl Error for EopError
1.30.0 · 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()
impl StructuralPartialEq for EopError
Auto Trait Implementations§
impl Freeze for EopError
impl RefUnwindSafe for EopError
impl Send for EopError
impl Sync for EopError
impl Unpin for EopError
impl UnsafeUnpin for EopError
impl UnwindSafe for EopError
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