#[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 fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
Sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
Source§impl Ord for GeomType
impl Ord for GeomType
Source§impl PartialOrd for GeomType
impl PartialOrd for GeomType
impl Copy for GeomType
impl Eq for GeomType
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 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