pub enum SpatialRelation {
Intersects,
Within,
Contains,
Disjoint,
Touches,
Crosses,
Overlaps,
Equals,
Covers,
CoveredBy,
ContainsProperly,
}Expand description
Spatial relation for geo_shape queries.
Supports the full [[ogc-simple-features]] / [[de-9im]] predicate set.
Variants§
Intersects
Query and document shapes share any area or boundary (default).
Within
Document shape is entirely inside the query shape.
Contains
Document shape entirely contains the query shape.
Disjoint
Query and document shapes share no area or boundary.
Touches
Shapes meet at boundary but don’t overlap interiors.
Crosses
Interiors intersect but neither contains the other.
Overlaps
Shared interior area, same dimension, neither contains the other.
Equals
Geometries are topologically identical.
Covers
Like Contains but includes boundary contact.
CoveredBy
Like Within but includes boundary contact.
ContainsProperly
Interior of document shape contains all of query shape (strict).
Trait Implementations§
Source§impl Clone for SpatialRelation
impl Clone for SpatialRelation
Source§fn clone(&self) -> SpatialRelation
fn clone(&self) -> SpatialRelation
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 SpatialRelation
impl Debug for SpatialRelation
Source§impl PartialEq for SpatialRelation
impl PartialEq for SpatialRelation
Source§fn eq(&self, other: &SpatialRelation) -> bool
fn eq(&self, other: &SpatialRelation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SpatialRelation
Auto Trait Implementations§
impl Freeze for SpatialRelation
impl RefUnwindSafe for SpatialRelation
impl Send for SpatialRelation
impl Sync for SpatialRelation
impl Unpin for SpatialRelation
impl UnsafeUnpin for SpatialRelation
impl UnwindSafe for SpatialRelation
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<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