pub enum EllipticalShape {
EpsgDatum(u32),
Ellipse(Ellipse),
}
Variants§
Implementations§
Source§impl EllipticalShape
impl EllipticalShape
pub fn name(&self) -> String
pub fn is_wgs84(&self) -> bool
pub fn as_ellipse(&self) -> Result<Ellipse, ConvertError>
pub fn as_ellipsoid(&self) -> Result<Ellipsoid, ConvertError>
Trait Implementations§
Source§impl Clone for EllipticalShape
impl Clone for EllipticalShape
Source§fn clone(&self) -> EllipticalShape
fn clone(&self) -> EllipticalShape
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 EllipticalShape
impl Debug for EllipticalShape
Source§impl Default for EllipticalShape
impl Default for EllipticalShape
Source§impl From<&Ellipsoid> for EllipticalShape
impl From<&Ellipsoid> for EllipticalShape
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<Ellipsoid> for EllipticalShape
impl From<Ellipsoid> for EllipticalShape
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 PartialEq for EllipticalShape
impl PartialEq for EllipticalShape
Source§impl TryFrom<&EllipticalShape> for Ellipse
impl TryFrom<&EllipticalShape> for Ellipse
Source§type Error = ConvertError
type Error = ConvertError
The type returned in the event of a conversion error.
impl Copy for EllipticalShape
impl StructuralPartialEq for EllipticalShape
Auto Trait Implementations§
impl Freeze for EllipticalShape
impl RefUnwindSafe for EllipticalShape
impl Send for EllipticalShape
impl Sync for EllipticalShape
impl Unpin for EllipticalShape
impl UnwindSafe for EllipticalShape
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