[−][src]Struct circadia::SunEvents
This struct allows one to create iterators over sun events moving forward or backward in time.
Methods
impl SunEvents
[src]
pub fn starting_from(
start_date: DateTime<Utc>,
position: GlobalPosition,
event_whitelist: &[SunEvent]
) -> Self
[src]
start_date: DateTime<Utc>,
position: GlobalPosition,
event_whitelist: &[SunEvent]
) -> Self
List SunEvents starting from the start_date
, computed at position
,
including only the SunEvents listed in the event_whitelist
.
Panics
Panics when event_whitelist
is empty.
ⓘImportant traits for ForecastedSunEventspub fn forecast(self) -> ForecastedSunEvents
[src]
ⓘImportant traits for ForecastedSunEvents
List SunEvents occurring after the start_date.
ⓘImportant traits for HistoricSunEventspub fn history(self) -> HistoricSunEvents
[src]
ⓘImportant traits for HistoricSunEvents
List SunEvents occurring before the start_date.
Trait Implementations
Auto Trait Implementations
impl Send for SunEvents
impl Sync for SunEvents
impl Unpin for SunEvents
impl UnwindSafe for SunEvents
impl RefUnwindSafe for SunEvents
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,