pub struct JulianDate(/* private fields */);Implementations§
Source§impl JulianDate
impl JulianDate
Sourcepub const fn new(value: f64) -> Result<Self, EpochError>
pub const fn new(value: f64) -> Result<Self, EpochError>
Creates a Julian date from a finite numeric value.
§Errors
Returns EpochError::NonFiniteJulianDate when value is not finite.
pub const fn value(self) -> f64
Trait Implementations§
Source§impl Clone for JulianDate
impl Clone for JulianDate
Source§fn clone(&self) -> JulianDate
fn clone(&self) -> JulianDate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 JulianDate
impl Debug for JulianDate
Source§impl PartialEq for JulianDate
impl PartialEq for JulianDate
Source§fn eq(&self, other: &JulianDate) -> bool
fn eq(&self, other: &JulianDate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for JulianDate
impl PartialOrd for JulianDate
impl Copy for JulianDate
impl StructuralPartialEq for JulianDate
Auto Trait Implementations§
impl Freeze for JulianDate
impl RefUnwindSafe for JulianDate
impl Send for JulianDate
impl Sync for JulianDate
impl Unpin for JulianDate
impl UnsafeUnpin for JulianDate
impl UnwindSafe for JulianDate
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