pub type Degrees = Quantity<Degree>;Expand description
Convenience alias for a degree quantity.
Aliased Type§
pub struct Degrees(/* private fields */);Trait Implementations§
Source§impl From<MoonPhaseLabel> for Degrees
Convert a MoonPhaseLabel to a representative elongation in degrees.
impl From<MoonPhaseLabel> for Degrees
Convert a MoonPhaseLabel to a representative elongation in degrees.
This returns the central angle of the octant associated with the label
(New=0°, WaxingCrescent=45°, FirstQuarter=90°, …). Implemented as
From so callers can use Into<Degrees> as needed.
Source§fn from(lbl: MoonPhaseLabel) -> Self
fn from(lbl: MoonPhaseLabel) -> Self
Converts to this type from the input type.