#[non_exhaustive]pub enum StandardShapes {
WGS84,
WGS84_MeanRadius,
WGS84_EqualAreaSphere,
WGS84_EqualVolumeSphere,
Hayford_International,
GRS80,
Airy,
NavionicsMercator,
Clarke1866,
NAD27,
NAD83,
}
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
WGS84
Standard WGS84
WGS84_MeanRadius
An average of the WGS84 axes
WGS84_EqualAreaSphere
A sphere with the same surface area as WGS84
WGS84_EqualVolumeSphere
A sphere with the same volume as WGS84
Hayford_International
Hayford Ellipsoid ca 1924
GRS80
ITRS GRS80 Ellipsoid ca 1979
Airy
Airy Ellipsoid ca 1830
Navioncs uses the Hayford International ellipsoid
Clarke1866
NAD27
NAD83
Implementations§
Source§impl StandardShapes
impl StandardShapes
pub fn as_ellipse(&self) -> Ellipse
pub fn as_ellipsoid(&self) -> Ellipsoid
pub fn lookup_epsg(epsg: u32) -> Option<StandardShapes>
Trait Implementations§
Source§impl Clone for StandardShapes
impl Clone for StandardShapes
Source§fn clone(&self) -> StandardShapes
fn clone(&self) -> StandardShapes
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StandardShapes
impl Debug for StandardShapes
Source§impl From<&StandardShapes> for Ellipse
impl From<&StandardShapes> for Ellipse
Source§fn from(value: &StandardShapes) -> Self
fn from(value: &StandardShapes) -> Self
Converts to this type from the input type.
Source§impl From<&StandardShapes> for EllipticalShape
impl From<&StandardShapes> for EllipticalShape
Source§fn from(value: &StandardShapes) -> Self
fn from(value: &StandardShapes) -> Self
Converts to this type from the input type.
Source§impl From<StandardShapes> for EllipticalShape
impl From<StandardShapes> for EllipticalShape
Source§fn from(value: StandardShapes) -> Self
fn from(value: StandardShapes) -> Self
Converts to this type from the input type.
impl Copy for StandardShapes
Auto Trait Implementations§
impl Freeze for StandardShapes
impl RefUnwindSafe for StandardShapes
impl Send for StandardShapes
impl Sync for StandardShapes
impl Unpin for StandardShapes
impl UnwindSafe for StandardShapes
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