#[non_exhaustive]pub enum RKeyFunction {
Show 15 variants
KeyExact,
KeyOrNext,
KeyOrPrev,
AfterKey,
BeforeKey,
Prefix,
PrefixLast,
PrefixLastOrPrev,
MbrContain,
MbrIntersect,
MbrWithin,
MbrDisjoint,
MbrEqual,
NearestNeighbor,
Invalid,
}Expand description
Search semantics for an index lookup, mirroring MySQL’s ha_rkey_function.
Passed to StorageEngine::index_read_map to describe how the supplied key
should be matched: an exact hit, the nearest neighbour in a direction, a
prefix, or one of the spatial (minimum-bounding-rectangle) relations.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
KeyExact
Find the first record with exactly this key, else error
KeyOrNext
This record or the next one
KeyOrPrev
This record or the previous one
AfterKey
First record after this key
BeforeKey
First record before this key
Prefix
First record sharing this key prefix
PrefixLast
Last record sharing this key prefix
PrefixLastOrPrev
Last record with this prefix, or the previous one
MbrContain
Minimum bounding rectangle contains the key
MbrIntersect
Minimum bounding rectangle intersects the key
MbrWithin
Minimum bounding rectangle is within the key
MbrDisjoint
Minimum bounding rectangle is disjoint from the key
MbrEqual
Minimum bounding rectangle equals the key
NearestNeighbor
Nearest-neighbour spatial search
Invalid
Unrecognised value; MySQL’s HA_READ_INVALID or an out-of-range code
Trait Implementations§
Source§impl Clone for RKeyFunction
impl Clone for RKeyFunction
Source§fn clone(&self) -> RKeyFunction
fn clone(&self) -> RKeyFunction
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for RKeyFunction
Source§impl Debug for RKeyFunction
impl Debug for RKeyFunction
impl Eq for RKeyFunction
Source§impl PartialEq for RKeyFunction
impl PartialEq for RKeyFunction
Source§fn eq(&self, other: &RKeyFunction) -> bool
fn eq(&self, other: &RKeyFunction) -> bool
self and other values to be equal, and is used by ==.