pub enum PublicGeometryKind {
Point,
Line,
Polygon,
MultiPoint,
MultiLine,
MultiPolygon,
Collection,
}Expand description
Represents different types of geometric shapes in SurrealDB’s type system
This enum defines the various geometry types that can be used in type definitions and schema validation.
Variants§
Point
A single point in 2D space
Line
A line consisting of multiple connected points
Polygon
A polygon with an exterior boundary and optional interior holes
MultiPoint
Multiple points
MultiLine
Multiple lines
MultiPolygon
Multiple polygons
Collection
A collection of different geometry types
Trait Implementations§
Source§impl Clone for GeometryKind
impl Clone for GeometryKind
Source§fn clone(&self) -> GeometryKind
fn clone(&self) -> GeometryKind
Returns a duplicate 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 GeometryKind
impl Debug for GeometryKind
Source§impl<'de> Deserialize<'de> for GeometryKind
impl<'de> Deserialize<'de> for GeometryKind
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GeometryKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GeometryKind, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GeometryKind
impl Display for GeometryKind
Source§impl From<GeometryKind> for PublicGeometryKind
impl From<GeometryKind> for PublicGeometryKind
Source§fn from(v: GeometryKind) -> Self
fn from(v: GeometryKind) -> Self
Converts to this type from the input type.
Source§impl From<GeometryKind> for GeometryKind
impl From<GeometryKind> for GeometryKind
Source§fn from(v: PublicGeometryKind) -> Self
fn from(v: PublicGeometryKind) -> Self
Converts to this type from the input type.
Source§impl FromFlatbuffers for GeometryKind
impl FromFlatbuffers for GeometryKind
Source§type Input<'a> = GeometryKindType
type Input<'a> = GeometryKindType
The input type from the flatbuffers builder
Source§fn from_fb(
input: <GeometryKind as FromFlatbuffers>::Input<'_>,
) -> Result<GeometryKind, Error>
fn from_fb( input: <GeometryKind as FromFlatbuffers>::Input<'_>, ) -> Result<GeometryKind, Error>
Convert a flatbuffers builder type to a type.
Source§impl Hash for GeometryKind
impl Hash for GeometryKind
Source§impl PartialEq for GeometryKind
impl PartialEq for GeometryKind
Source§impl Serialize for GeometryKind
impl Serialize for GeometryKind
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl ToFlatbuffers for GeometryKind
impl ToFlatbuffers for GeometryKind
Source§type Output<'bldr> = GeometryKindType
type Output<'bldr> = GeometryKindType
The output type for the flatbuffers builder
Source§fn to_fb<'bldr>(
&self,
_builder: &mut FlatBufferBuilder<'bldr>,
) -> Result<<GeometryKind as ToFlatbuffers>::Output<'bldr>, Error>
fn to_fb<'bldr>( &self, _builder: &mut FlatBufferBuilder<'bldr>, ) -> Result<<GeometryKind as ToFlatbuffers>::Output<'bldr>, Error>
Convert the type to a flatbuffers builder type.
Source§impl ToSql for GeometryKind
impl ToSql for GeometryKind
impl Eq for GeometryKind
impl StructuralPartialEq for GeometryKind
Auto Trait Implementations§
impl Freeze for GeometryKind
impl RefUnwindSafe for GeometryKind
impl Send for GeometryKind
impl Sync for GeometryKind
impl Unpin for GeometryKind
impl UnsafeUnpin for GeometryKind
impl UnwindSafe for GeometryKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§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>
Converts
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>
Converts
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