Struct solar_calendar_events::JuneSolstice
source · pub struct JuneSolstice { /* private fields */ }
Implementations§
source§impl JuneSolstice
impl JuneSolstice
sourcepub fn new(year: i32) -> Option<JuneSolstice>
pub fn new(year: i32) -> Option<JuneSolstice>
Returns an Option containing a new JuneSolstice struct for a year within the range 1900 to 2100. A year outside the range 1900-2100 will return None.
sourcepub fn date_time(&self) -> Option<OffsetDateTime>
pub fn date_time(&self) -> Option<OffsetDateTime>
Returns the date and time of the June Solstice as an Option
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for JuneSolstice
impl Send for JuneSolstice
impl Sync for JuneSolstice
impl Unpin for JuneSolstice
impl UnwindSafe for JuneSolstice
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