pub struct Latitude(/* private fields */);Implementations§
Source§impl Latitude
impl Latitude
Sourcepub fn new(value: f64) -> Result<Self, GeoCoordinateError>
pub fn new(value: f64) -> Result<Self, GeoCoordinateError>
Creates a latitude from decimal degrees.
§Errors
Returns GeoCoordinateError::LatitudeNotFinite when the value is not finite.
Returns GeoCoordinateError::LatitudeOutOfRange when the value is outside -90.0..=90.0.
pub const fn degrees(self) -> f64
Trait Implementations§
Source§impl PartialOrd for Latitude
impl PartialOrd for Latitude
impl Copy for Latitude
impl StructuralPartialEq for Latitude
Auto Trait Implementations§
impl Freeze for Latitude
impl RefUnwindSafe for Latitude
impl Send for Latitude
impl Sync for Latitude
impl Unpin for Latitude
impl UnsafeUnpin for Latitude
impl UnwindSafe for Latitude
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more