pub enum IndexHintKind {
Index,
RangeIndex,
TextIndex,
}Expand description
The index kind a USING INDEX-family hint names: the plain
USING INDEX [SEEK] form, the range-typed USING RANGE INDEX form,
or the text-typed USING TEXT INDEX form. The kinds share one
fulfillability policy — the front end validates the variable, label
and WHERE predicate for every kind, exactly as it does for the plain
hint — and differ in the spelling rendered back to the user and in two
capabilities, IndexHintKind::serves_is_not_null and
IndexHintKind::serves_point_seek.
Variants§
Implementations§
Source§impl IndexHintKind
impl IndexHintKind
Sourcepub fn as_written(&self) -> &'static str
pub fn as_written(&self) -> &'static str
The kind as written between USING and the variable — INDEX,
RANGE INDEX, or TEXT INDEX — the one spelling the front
end’s unfulfillable-hint error (42N76), the plan-time 01N31
description and the parser’s after-USING expected-list render;
every consumer reads it here, none re-stores it.
Sourcepub fn serves_is_not_null(&self) -> bool
pub fn serves_is_not_null(&self) -> bool
Whether an index of this kind serves an IS NOT NULL predicate on
the hinted property: a plain or RANGE index does, a TEXT index does
not (live Neo4j 2026.10.1: a TEXT INDEX hint with only IS NOT NULL is 42N77/42N76). The front end’s hint fulfillability rule
reads it here, the one home of the per-kind capability.
Sourcepub fn serves_point_seek(&self) -> bool
pub fn serves_point_seek(&self) -> bool
Whether an index of this kind serves a point.withinBBox seek on
the hinted property: only the plain hint can name a point index; a
RANGE or TEXT hint names an index kind that holds no spatial
ordering. The front end’s hint fulfillability rule reads it here,
beside its sibling capability.
Trait Implementations§
Source§impl Clone for IndexHintKind
impl Clone for IndexHintKind
impl Copy for IndexHintKind
Source§impl Debug for IndexHintKind
impl Debug for IndexHintKind
impl Eq for IndexHintKind
Source§impl PartialEq for IndexHintKind
impl PartialEq for IndexHintKind
impl StructuralPartialEq for IndexHintKind
Auto Trait Implementations§
impl Forget for IndexHintKind
impl Freeze for IndexHintKind
impl Move for IndexHintKind
impl RefUnwindSafe for IndexHintKind
impl Send for IndexHintKind
impl Sync for IndexHintKind
impl Unpin for IndexHintKind
impl UnsafeUnpin for IndexHintKind
impl UnwindSafe for IndexHintKind
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
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§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
key and return true if they are equal.