Struct flatgeobuf::GeometryType
source · #[repr(transparent)]pub struct GeometryType(pub u8);
Tuple Fields§
§0: u8
Implementations§
source§impl GeometryType
impl GeometryType
pub const Unknown: Self = _
pub const Point: Self = _
pub const LineString: Self = _
pub const Polygon: Self = _
pub const MultiPoint: Self = _
pub const MultiLineString: Self = _
pub const MultiPolygon: Self = _
pub const GeometryCollection: Self = _
pub const CircularString: Self = _
pub const CompoundCurve: Self = _
pub const CurvePolygon: Self = _
pub const MultiCurve: Self = _
pub const MultiSurface: Self = _
pub const Curve: Self = _
pub const Surface: Self = _
pub const PolyhedralSurface: Self = _
pub const TIN: Self = _
pub const Triangle: Self = _
pub const ENUM_MIN: u8 = 0u8
pub const ENUM_MAX: u8 = 17u8
pub const ENUM_VALUES: &'static [Self] = _
sourcepub fn variant_name(self) -> Option<&'static str>
pub fn variant_name(self) -> Option<&'static str>
Returns the variant’s name or “” if unknown.
Trait Implementations§
source§impl Clone for GeometryType
impl Clone for GeometryType
source§fn clone(&self) -> GeometryType
fn clone(&self) -> GeometryType
Returns a copy 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 GeometryType
impl Debug for GeometryType
source§impl Default for GeometryType
impl Default for GeometryType
source§fn default() -> GeometryType
fn default() -> GeometryType
Returns the “default value” for a type. Read more
source§impl EndianScalar for GeometryType
impl EndianScalar for GeometryType
source§impl<'a> Follow<'a> for GeometryType
impl<'a> Follow<'a> for GeometryType
source§impl Hash for GeometryType
impl Hash for GeometryType
source§impl Ord for GeometryType
impl Ord for GeometryType
source§fn cmp(&self, other: &GeometryType) -> Ordering
fn cmp(&self, other: &GeometryType) -> 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 for GeometryType
impl PartialEq for GeometryType
source§fn eq(&self, other: &GeometryType) -> bool
fn eq(&self, other: &GeometryType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GeometryType
impl PartialOrd for GeometryType
source§fn partial_cmp(&self, other: &GeometryType) -> Option<Ordering>
fn partial_cmp(&self, other: &GeometryType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Push for GeometryType
impl Push for GeometryType
source§impl<'a> Verifiable for GeometryType
impl<'a> Verifiable for GeometryType
source§fn run_verifier(
v: &mut Verifier<'_, '_>,
pos: usize
) -> Result<(), InvalidFlatbuffer>
fn run_verifier( v: &mut Verifier<'_, '_>, pos: usize ) -> Result<(), InvalidFlatbuffer>
Runs the verifier for this type, assuming its at position
pos
in the verifier’s buffer.
Should not need to be called directly.impl Copy for GeometryType
impl Eq for GeometryType
impl SimpleToVerifyInSlice for GeometryType
impl StructuralPartialEq for GeometryType
Auto Trait Implementations§
impl RefUnwindSafe for GeometryType
impl Send for GeometryType
impl Sync for GeometryType
impl Unpin for GeometryType
impl UnwindSafe for GeometryType
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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.