pub enum CalculationError {
DeltaUt1OutOfRange,
LongitudeOutOfRange,
LatitudeOutOfRange,
ElevationOutOfRange,
PressureOutOfRange,
TemperatureOutOfRange,
GeometricDipOutOfRange,
TimeConversionError,
}Expand description
Errors that can occur during solar position calculations.
All input parameters are validated when creating an AstronomicalCalculator.
These errors indicate that a parameter falls outside its valid range.
§Variants
DeltaUt1OutOfRange: ΔUT1 must be in range [-1.0, 1.0] secondsLongitudeOutOfRange: Longitude must be in range [-π, π] radians ([-180°, 180°])LatitudeOutOfRange: Latitude must be in range [-π/2, π/2] radians ([-90°, 90°])ElevationOutOfRange: Elevation must be > -6,500,000 metersPressureOutOfRange: Pressure must be in range (0.0, 5000.0] millibarsTemperatureOutOfRange: Temperature must be > -273.15°C (absolute zero)GeometricDipOutOfRange: Geometric dip must be in range [-5.0, 5.0] degreesTimeConversionError: Invalid datetime or timestamp conversion
Variants§
DeltaUt1OutOfRange
ΔUT1 parameter out of valid range [-1.0, 1.0] seconds
LongitudeOutOfRange
Longitude out of valid range [-π, π] radians
LatitudeOutOfRange
Latitude out of valid range [-π/2, π/2] radians
ElevationOutOfRange
Elevation below minimum value (-6,500,000 meters)
PressureOutOfRange
Pressure out of valid range (0.0, 5000.0] millibars
TemperatureOutOfRange
Temperature below absolute zero (-273.15°C)
GeometricDipOutOfRange
Geometric dip angle out of valid range [-5.0, 5.0] degrees
TimeConversionError
Error converting between time representations
Trait Implementations§
Source§impl Clone for CalculationError
impl Clone for CalculationError
Source§fn clone(&self) -> CalculationError
fn clone(&self) -> CalculationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CalculationError
impl Debug for CalculationError
Source§impl Display for CalculationError
impl Display for CalculationError
Source§impl Error for CalculationError
impl Error for CalculationError
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 Copy for CalculationError
Auto Trait Implementations§
impl Freeze for CalculationError
impl RefUnwindSafe for CalculationError
impl Send for CalculationError
impl Sync for CalculationError
impl Unpin for CalculationError
impl UnwindSafe for CalculationError
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