pub trait ParseAngle {
// Required method
fn to_angle(&self) -> Result<Angle, AstroError>;
}Expand description
Auto-detect and parse angle format.
Tries formats in order: HMS, then DMS, then decimal degrees. Use this for user input where format is unknown.
For coordinates with known semantics (RA vs Dec), prefer explicit
.hms() or .dms() via AngleUnits.
Required Methods§
Sourcefn to_angle(&self) -> Result<Angle, AstroError>
fn to_angle(&self) -> Result<Angle, AstroError>
Parse angle, auto-detecting format.
Detection order: HMS -> DMS -> decimal degrees.