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