#[non_exhaustive]pub enum CoordinateSpace {
Geographic {
crs: Option<String>,
},
Projected {
crs: Option<String>,
},
Diagram {
canvas: Option<Canvas>,
},
Unknown,
}Expand description
Coordinate space for locations in a network.
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.
Geographic
x = longitude and y = latitude in decimal degrees. None means EPSG:4326.
Projected
Planar coordinates, with the CRS named when known.
Diagram
Drawing coordinates with no earth referent.
Unknown
The source did not declare a coordinate space.
Trait Implementations§
Source§impl Clone for CoordinateSpace
impl Clone for CoordinateSpace
Source§fn clone(&self) -> CoordinateSpace
fn clone(&self) -> CoordinateSpace
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CoordinateSpace
impl Debug for CoordinateSpace
Source§impl<'de> Deserialize<'de> for CoordinateSpace
impl<'de> Deserialize<'de> for CoordinateSpace
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for CoordinateSpace
impl JsonSchema for CoordinateSpace
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for CoordinateSpace
impl PartialEq for CoordinateSpace
Source§fn eq(&self, other: &CoordinateSpace) -> bool
fn eq(&self, other: &CoordinateSpace) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CoordinateSpace
impl Serialize for CoordinateSpace
impl StructuralPartialEq for CoordinateSpace
Auto Trait Implementations§
impl Freeze for CoordinateSpace
impl RefUnwindSafe for CoordinateSpace
impl Send for CoordinateSpace
impl Sync for CoordinateSpace
impl Unpin for CoordinateSpace
impl UnsafeUnpin for CoordinateSpace
impl UnwindSafe for CoordinateSpace
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