Skip to main content

LunarStatus

Struct LunarStatus 

Source
pub struct LunarStatus {
Show 17 fields pub phase_key: &'static str, pub phase_name: &'static str, pub phase_quarter: u8, pub glyph: &'static str, pub elongation: f64, pub illumination_percentage: f64, pub moon_age_days: f64, pub is_waxing: bool, pub moon_sign: &'static str, pub moon_degree: i64, pub moon_minute: i64, pub moon_longitude: f64, pub moon_house: u8, pub moon_speed: f64, pub speed_status: &'static str, pub essential_dignity: &'static str, pub lunar_mansion: LunarMansion,
}
Expand description

Lunar phase, speed, dignity and mansion.

Fields§

§phase_key: &'static str

Phase identifier, e.g. “waxing_gibbous”.

§phase_name: &'static str

Phase name, e.g. “Waxing Gibbous”.

§phase_quarter: u8

Quarter (1-4) the phase belongs to.

§glyph: &'static str

Phase emoji, e.g. “🌔”.

§elongation: f64

Moon’s longitude minus the Sun’s, degrees [0, 360).

§illumination_percentage: f64

Illuminated fraction of the disc, percent.

§moon_age_days: f64

Days since the new Moon (from the elongation and the mean synodic month).

§is_waxing: bool

Whether the elongation is below 180°.

§moon_sign: &'static str

Sign of the Moon.

§moon_degree: i64

Whole degrees of the Moon within its sign.

§moon_minute: i64

Arc minutes past moon_degree.

§moon_longitude: f64

Moon’s ecliptic longitude in degrees.

§moon_house: u8

House (1-12) of the Moon.

§moon_speed: f64

Moon’s speed, degrees per day.

§speed_status: &'static str

“swift” (> 13.5°/day), “slow” (< 12.5°/day) or “average”.

§essential_dignity: &'static str

“Domicile”, “Exaltation”, “Detriment”, “Fall” or “Peregrine”.

§lunar_mansion: LunarMansion

Lunar mansion the Moon is in.

Trait Implementations§

Source§

impl Clone for LunarStatus

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LunarStatus

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for LunarStatus

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for LunarStatus

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for LunarStatus

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.