pub enum ReferenceFrame {
Show 33 variants
ITRF88,
ITRF89,
ITRF90,
ITRF91,
ITRF92,
ITRF93,
ITRF94,
ITRF96,
ITRF97,
ITRF2000,
ITRF2005,
ITRF2008,
ITRF2014,
ITRF2020,
ETRF89,
ETRF90,
ETRF91,
ETRF92,
ETRF93,
ETRF94,
ETRF96,
ETRF97,
ETRF2000,
ETRF2005,
ETRF2014,
ETRF2020,
NAD83_2011,
NAD83_CSRS,
DREF91_R2016,
WGS84_G1762,
WGS84_G2139,
WGS84_G2296,
Other(String),
}Expand description
Geodetic reference frame identifiers
Enumerates well-known global and regional reference frames with support
for custom frames via the Other variant.
§Examples
// Use predefined frames
let itrf = ReferenceFrame::ITRF2020;
let nad83 = ReferenceFrame::NAD83_2011;
// Parse from string
let parsed: ReferenceFrame = "ITRF2014".parse()?;
let custom: ReferenceFrame = "MY_LOCAL_FRAME".parse()?;
// Custom frames
let local = ReferenceFrame::Other("SITE_FRAME_2023".to_string());Variants§
ITRF88
ITRF89
ITRF90
ITRF91
ITRF92
ITRF93
ITRF94
ITRF96
ITRF97
ITRF2000
ITRF2005
ITRF2008
ITRF2014
ITRF2020
ETRF89
ETRF90
ETRF91
ETRF92
ETRF93
ETRF94
ETRF96
ETRF97
ETRF2000
ETRF2005
ETRF2014
ETRF2020
NAD83_2011
i.e. NAD83(2011)
NAD83_CSRS
i.e. NAD83(CSRS) - Canadian Spatial Reference System
DREF91_R2016
WGS84_G1762
WGS84_G2139
WGS84_G2296
Other(String)
Custom reference frame with user-defined name
Trait Implementations§
Source§impl Clone for ReferenceFrame
impl Clone for ReferenceFrame
Source§fn clone(&self) -> ReferenceFrame
fn clone(&self) -> ReferenceFrame
Returns a duplicate 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 ReferenceFrame
impl Debug for ReferenceFrame
Source§impl Display for ReferenceFrame
impl Display for ReferenceFrame
Source§impl FromStr for ReferenceFrame
impl FromStr for ReferenceFrame
Source§impl Hash for ReferenceFrame
impl Hash for ReferenceFrame
Source§impl IntoEnumIterator for ReferenceFrame
impl IntoEnumIterator for ReferenceFrame
type Iterator = ReferenceFrameIter
fn iter() -> ReferenceFrameIter ⓘ
Source§impl Ord for ReferenceFrame
impl Ord for ReferenceFrame
Source§fn cmp(&self, other: &ReferenceFrame) -> Ordering
fn cmp(&self, other: &ReferenceFrame) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq<&ReferenceFrame> for ReferenceFrame
impl PartialEq<&ReferenceFrame> for ReferenceFrame
Source§impl PartialEq<ReferenceFrame> for &ReferenceFrame
impl PartialEq<ReferenceFrame> for &ReferenceFrame
Source§impl PartialEq for ReferenceFrame
impl PartialEq for ReferenceFrame
Source§impl PartialOrd for ReferenceFrame
impl PartialOrd for ReferenceFrame
Source§impl TryFrom<&str> for ReferenceFrame
impl TryFrom<&str> for ReferenceFrame
impl Eq for ReferenceFrame
impl StructuralPartialEq for ReferenceFrame
Auto Trait Implementations§
impl Freeze for ReferenceFrame
impl RefUnwindSafe for ReferenceFrame
impl Send for ReferenceFrame
impl Sync for ReferenceFrame
impl Unpin for ReferenceFrame
impl UnwindSafe for ReferenceFrame
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.