pub enum Event {
Fixed(FixedElevationEvent),
Variable(VariableElevationEvent),
}
Expand description
Any supported solar event.
Some events, such as sunrise and sunset, occur when the Sun is at a specific altitude relative to the horizon, but other events, such as solar noon, occur not at a fixed altitude, but a variable one. Each of these has a different way of calculating the time of the event, hence they are separated into two variants.
Variants
Fixed(FixedElevationEvent)
Variable(VariableElevationEvent)
Implementations
sourceimpl Event
impl Event
pub fn from_event_name(event: EventName) -> Self
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more