#[non_exhaustive]pub struct LandXmlCoordinateSystem {
pub horizontal_datum: Option<String>,
pub vertical_datum: Option<String>,
pub epsg_code: Option<String>,
pub name: Option<String>,
}Expand description
Source-owned CRS declarations from LandXML 1.2’s root CoordinateSystem. Kept as raw strings: only the viewer adapter may accept explicit EPSG IDs.
#[non_exhaustive] so a later CRS attribute is an additive change: the
parser is the only constructor, and outside the crate this record is read,
not built (Rust-only break #10, which added epsg_code).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.horizontal_datum: Option<String>§vertical_datum: Option<String>§epsg_code: Option<String>LandXML 1.2’s own attribute for the CRS’s EPSG code (epsgCode). It is
how real producers declare the CRS: Civil 3D 2021/2022 and 3D-Win 6.6.4
all write it, and none of them writes an EPSG id into horizontalDatum
(#5942 follow-up). Raw, like the other two: never resolved here.
name: Option<String>LandXML 1.2’s CoordinateSystem@name: the producer’s own label for the
CRS (3D-Win writes GK21 beside epsgCode="3875"; ifc-lite’s IFC
terrain export writes IfcProjectedCRS.Name here). Raw, like the
others; which of these a consumer names the CRS by is its own policy
(#7604). Additive under #[non_exhaustive].
Trait Implementations§
Source§impl Clone for LandXmlCoordinateSystem
impl Clone for LandXmlCoordinateSystem
Source§fn clone(&self) -> LandXmlCoordinateSystem
fn clone(&self) -> LandXmlCoordinateSystem
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LandXmlCoordinateSystem
impl Debug for LandXmlCoordinateSystem
Source§impl<'de> Deserialize<'de> for LandXmlCoordinateSystem
impl<'de> Deserialize<'de> for LandXmlCoordinateSystem
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LandXmlCoordinateSystem
impl PartialEq for LandXmlCoordinateSystem
Source§impl Serialize for LandXmlCoordinateSystem
impl Serialize for LandXmlCoordinateSystem
impl StructuralPartialEq for LandXmlCoordinateSystem
Auto Trait Implementations§
impl Freeze for LandXmlCoordinateSystem
impl RefUnwindSafe for LandXmlCoordinateSystem
impl Send for LandXmlCoordinateSystem
impl Sync for LandXmlCoordinateSystem
impl Unpin for LandXmlCoordinateSystem
impl UnwindSafe for LandXmlCoordinateSystem
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
self to type T. The semantics of numeric casting with the as operator are followed, so <T as As>::as_::<U> can be used in the same way as T as U for numeric conversions. Read moreSource§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.