Description
Implement Longitude as a ValueObject in the geo module.
Spec: f64 in range −180.0..=180.0
Implementation checklist
Implementation detail
Input / Output
|
Type |
Alias |
| Input |
f64 |
LongitudeInput |
| Output |
f64 |
LongitudeOutput |
Normalization
None.
Validation
- Must be finite (not NaN, not infinite).
- Must be in the range
-180.0..=180.0 (inclusive).
Extra methods
None beyond the trait.
References
Description
Implement
Longitudeas aValueObjectin thegeomodule.Spec:
f64in range −180.0..=180.0Implementation checklist
src/geo/longitude.rsValueObjecttrait#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]src/geo/mod.rsandprelude# ExampleblockROADMAP.mdfrom ⬜ to ✅Implementation detail
Input / Output
f64LongitudeInputf64LongitudeOutputNormalization
None.
Validation
-180.0..=180.0(inclusive).Extra methods
None beyond the trait.
References