pub enum Horizon {
SunriseSunset,
CivilTwilight,
NauticalTwilight,
AstronomicalTwilight,
Custom(f64),
}Expand description
Predefined elevation angles for sunrise/sunset calculations.
Corresponds to different twilight definitions for consistent sunrise, sunset, and twilight calculations.
Variants§
SunriseSunset
Standard sunrise/sunset (sun’s upper limb touches horizon, accounting for refraction)
CivilTwilight
Civil twilight (sun is 6° below horizon)
NauticalTwilight
Nautical twilight (sun is 12° below horizon)
AstronomicalTwilight
Astronomical twilight (sun is 18° below horizon)
Custom(f64)
Custom elevation angle
Implementations§
Trait Implementations§
impl Copy for Horizon
impl Eq for Horizon
impl StructuralPartialEq for Horizon
Auto Trait Implementations§
impl Freeze for Horizon
impl RefUnwindSafe for Horizon
impl Send for Horizon
impl Sync for Horizon
impl Unpin for Horizon
impl UnwindSafe for Horizon
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)