pub enum IndexMethod {
BTree,
Hnsw,
Brin,
}Variants§
BTree
Default — B-tree over IndexKey. Used for equality / range
lookups on scalar columns.
Hnsw
USING hnsw — NSW graph for kNN over a vector column.
Brin
v6.7.1 — USING brin — Block Range INdex. Per-segment
metadata that records (min_key, max_key) for each page in a
cold-tier segment, on the indexed column. The optimizer
can use these summaries to skip pages whose range does NOT
overlap a query’s WHERE predicate. BRIN indexes carry no
in-memory data — the summaries live in the segment v2
envelope’s sidecar. Created via the standard
CREATE INDEX … USING brin (col) syntax.
Trait Implementations§
Source§impl Clone for IndexMethod
impl Clone for IndexMethod
Source§fn clone(&self) -> IndexMethod
fn clone(&self) -> IndexMethod
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 moreimpl Copy for IndexMethod
Source§impl Debug for IndexMethod
impl Debug for IndexMethod
impl Eq for IndexMethod
Source§impl PartialEq for IndexMethod
impl PartialEq for IndexMethod
Source§fn eq(&self, other: &IndexMethod) -> bool
fn eq(&self, other: &IndexMethod) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndexMethod
Auto Trait Implementations§
impl Freeze for IndexMethod
impl RefUnwindSafe for IndexMethod
impl Send for IndexMethod
impl Sync for IndexMethod
impl Unpin for IndexMethod
impl UnsafeUnpin for IndexMethod
impl UnwindSafe for IndexMethod
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