#[repr(i32)]pub enum GeomType {
UNKNOWN = 0,
POINT = 1,
LINESTRING = 2,
POLYGON = 3,
}Expand description
GeomType is described in section 4.3.4 of the specification
Variants§
Implementations§
Source§impl GeomType
impl GeomType
Sourcepub const Unknown: Self = Self::UNKNOWN
pub const Unknown: Self = Self::UNKNOWN
Idiomatic alias for Self::UNKNOWN; Debug prints the variant name.
Sourcepub const Point: Self = Self::POINT
pub const Point: Self = Self::POINT
Idiomatic alias for Self::POINT; Debug prints the variant name.
Sourcepub const Linestring: Self = Self::LINESTRING
pub const Linestring: Self = Self::LINESTRING
Idiomatic alias for Self::LINESTRING; Debug prints the variant name.
Sourcepub const Polygon: Self = Self::POLYGON
pub const Polygon: Self = Self::POLYGON
Idiomatic alias for Self::POLYGON; Debug prints the variant name.
Trait Implementations§
impl Copy for GeomType
Source§impl<'de> Deserialize<'de> for GeomType
impl<'de> Deserialize<'de> for GeomType
Source§fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(d: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl Enumeration for GeomType
impl Enumeration for GeomType
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.impl Eq for GeomType
Source§impl ProtoElemJson for GeomType
impl ProtoElemJson for GeomType
Source§fn serialize_proto_json<S: Serializer>(
v: &Self,
s: S,
) -> Result<S::Ok, S::Error>
fn serialize_proto_json<S: Serializer>( v: &Self, s: S, ) -> Result<S::Ok, S::Error>
Serialize this value with proto3 JSON semantics.
Source§fn deserialize_proto_json<'de, D: Deserializer<'de>>(
d: D,
) -> Result<Self, D::Error>
fn deserialize_proto_json<'de, D: Deserializer<'de>>( d: D, ) -> Result<Self, D::Error>
Deserialize a value with proto3 JSON semantics.
impl StructuralPartialEq for GeomType
Auto Trait Implementations§
impl Freeze for GeomType
impl RefUnwindSafe for GeomType
impl Send for GeomType
impl Sync for GeomType
impl Unpin for GeomType
impl UnsafeUnpin for GeomType
impl UnwindSafe for GeomType
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