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
sourceimpl Clone for SpatialRelation
impl Clone for SpatialRelation
sourcefn clone(&self) -> SpatialRelation
fn clone(&self) -> SpatialRelation
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SpatialRelation
impl Debug for SpatialRelation
sourceimpl Default for SpatialRelation
impl Default for SpatialRelation
sourceimpl Ord for SpatialRelation
impl Ord for SpatialRelation
sourcefn cmp(&self, other: &SpatialRelation) -> Ordering
fn cmp(&self, other: &SpatialRelation) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<SpatialRelation> for SpatialRelation
impl PartialEq<SpatialRelation> for SpatialRelation
sourcefn eq(&self, other: &SpatialRelation) -> bool
fn eq(&self, other: &SpatialRelation) -> bool
sourceimpl PartialOrd<SpatialRelation> for SpatialRelation
impl PartialOrd<SpatialRelation> for SpatialRelation
sourcefn partial_cmp(&self, other: &SpatialRelation) -> Option<Ordering>
fn partial_cmp(&self, other: &SpatialRelation) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moresourceimpl Serialize for SpatialRelation
impl Serialize for SpatialRelation
impl Copy for SpatialRelation
impl Eq for SpatialRelation
impl StructuralEq for SpatialRelation
impl StructuralPartialEq for SpatialRelation
Auto Trait Implementations
impl RefUnwindSafe for SpatialRelation
impl Send for SpatialRelation
impl Sync for SpatialRelation
impl Unpin for SpatialRelation
impl UnwindSafe for SpatialRelation
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more