pub struct Longitude(/* private fields */);Implementations§
Source§impl Longitude
impl Longitude
Sourcepub fn new(value: f64) -> Result<Self, GeoCoordinateError>
pub fn new(value: f64) -> Result<Self, GeoCoordinateError>
Creates a longitude from decimal degrees.
§Errors
Returns GeoCoordinateError::LongitudeNotFinite when the value is not finite.
Returns GeoCoordinateError::LongitudeOutOfRange when the value is outside -180.0..=180.0.
pub const fn degrees(self) -> f64
Trait Implementations§
Source§impl PartialOrd for Longitude
impl PartialOrd for Longitude
impl Copy for Longitude
impl StructuralPartialEq for Longitude
Auto Trait Implementations§
impl Freeze for Longitude
impl RefUnwindSafe for Longitude
impl Send for Longitude
impl Sync for Longitude
impl Unpin for Longitude
impl UnsafeUnpin for Longitude
impl UnwindSafe for Longitude
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