Enum elasticsearch_dsl::search::queries::params::SpatialRelation
source · pub enum SpatialRelation {
Intersects,
Disjoint,
Within,
Contains,
}
Expand description
Relation between coordinates
Variants§
Intersects
Return all documents whose shape
field intersects the query geometry
Disjoint
Return all documents whose shape
field has nothing in common with the
query geometry.
Within
Return all documents whose shape
field is within the query geometry.
Contains
Return all documents whose shape
field contains the query geometry.
Trait Implementations§
source§impl Clone for SpatialRelation
impl Clone for SpatialRelation
source§fn clone(&self) -> SpatialRelation
fn clone(&self) -> SpatialRelation
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 SpatialRelation
impl Debug for SpatialRelation
source§impl Default for SpatialRelation
impl Default for SpatialRelation
source§impl Ord for SpatialRelation
impl Ord for SpatialRelation
source§fn cmp(&self, other: &SpatialRelation) -> Ordering
fn cmp(&self, other: &SpatialRelation) -> 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<SpatialRelation> for SpatialRelation
impl PartialEq<SpatialRelation> for SpatialRelation
source§fn eq(&self, other: &SpatialRelation) -> bool
fn eq(&self, other: &SpatialRelation) -> bool
source§impl PartialOrd<SpatialRelation> for SpatialRelation
impl PartialOrd<SpatialRelation> for SpatialRelation
source§fn partial_cmp(&self, other: &SpatialRelation) -> Option<Ordering>
fn partial_cmp(&self, other: &SpatialRelation) -> 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 more