pub struct WithinFilter { /* private fields */ }Expand description
Filter that finds geometries contained within a given geometry.
A stored geometry matches if it is completely contained within the search geometry.
Implementations§
Trait Implementations§
Source§impl Clone for WithinFilter
impl Clone for WithinFilter
Source§fn clone(&self) -> WithinFilter
fn clone(&self) -> WithinFilter
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 Display for WithinFilter
impl Display for WithinFilter
Source§impl FilterProvider for WithinFilter
impl FilterProvider for WithinFilter
Source§fn apply(&self, entry: &Document) -> NitriteResult<bool>
fn apply(&self, entry: &Document) -> NitriteResult<bool>
Applies the filter to a document and returns whether it matches. Read more
Source§fn get_field_name(&self) -> NitriteResult<String>
fn get_field_name(&self) -> NitriteResult<String>
Gets the field name this filter operates on. Read more
Source§fn set_field_name(&self, field_name: String) -> NitriteResult<()>
fn set_field_name(&self, field_name: String) -> NitriteResult<()>
Sets the field name for this filter.
Source§fn is_index_only_filter(&self) -> bool
fn is_index_only_filter(&self) -> bool
Checks if this filter can be satisfied by index lookup alone.
Source§fn supported_index_type(&self) -> NitriteResult<String>
fn supported_index_type(&self) -> NitriteResult<String>
Gets the index type that this filter supports.
fn can_be_grouped(&self, other: Filter) -> NitriteResult<bool>
fn as_any(&self) -> &dyn Any
Source§fn apply_on_index(
&self,
_index_map: &IndexMap,
) -> Result<Vec<Value>, NitriteError>
fn apply_on_index( &self, _index_map: &IndexMap, ) -> Result<Vec<Value>, NitriteError>
Applies the filter using an index map for optimized scanning. Read more
Source§fn get_collection_name(&self) -> Result<String, NitriteError>
fn get_collection_name(&self) -> Result<String, NitriteError>
Gets the associated collection name for this filter. Read more
Source§fn set_collection_name(
&self,
_collection_name: String,
) -> Result<(), NitriteError>
fn set_collection_name( &self, _collection_name: String, ) -> Result<(), NitriteError>
Sets the collection name for this filter. Read more
Source§fn get_field_value(&self) -> Result<Option<Value>, NitriteError>
fn get_field_value(&self) -> Result<Option<Value>, NitriteError>
Gets the field value this filter operates on.
Source§fn set_field_value(&self, _field_value: Value) -> Result<(), NitriteError>
fn set_field_value(&self, _field_value: Value) -> Result<(), NitriteError>
Sets the field value for this filter.
Source§fn get_reverse_scan(&self) -> Result<bool, NitriteError>
fn get_reverse_scan(&self) -> Result<bool, NitriteError>
Gets whether reverse scanning is enabled.
Source§fn set_reverse_scan(&self, _reverse_scan: bool) -> Result<(), NitriteError>
fn set_reverse_scan(&self, _reverse_scan: bool) -> Result<(), NitriteError>
Sets whether to use reverse scanning.
Source§fn is_reverse_scan_supported(&self) -> bool
fn is_reverse_scan_supported(&self) -> bool
Checks if this filter supports reverse scanning through indexes.
fn process_index_value( &self, value: Option<Value>, sub_map: &mut Vec<Value>, nitrite_ids: &mut Vec<Value>, )
fn validate_array_search_term( &self, field: String, value: &Value, ) -> Result<(), NitriteError>
fn logical_filters(&self) -> Result<Vec<Filter>, NitriteError>
Source§impl SpatialFilterOps for WithinFilter
impl SpatialFilterOps for WithinFilter
Auto Trait Implementations§
impl Freeze for WithinFilter
impl RefUnwindSafe for WithinFilter
impl Send for WithinFilter
impl Sync for WithinFilter
impl Unpin for WithinFilter
impl UnsafeUnpin for WithinFilter
impl UnwindSafe for WithinFilter
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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