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 only in the spelling rendered back to the user.
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.
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
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<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
Compare self to
key and return true if they are equal.