pub enum IndexType {
BTree,
Hash,
GIN,
GiST,
SPGiST,
BRIN,
Bloom,
Custom(Ident),
}Expand description
Indexing method used by that index.
This structure isn’t present on ANSI, but is found at least in MySQL CREATE TABLE,
MySQL CREATE INDEX, and Postgresql CREATE INDEX statements.
Variants§
BTree
B-Tree index (commonly default for many databases).
Hash
Hash index.
GIN
Generalized Inverted Index (GIN).
GiST
Generalized Search Tree (GiST) index.
SPGiST
Space-partitioned GiST (SPGiST) index.
BRIN
Block Range Index (BRIN).
Bloom
Bloom filter based index.
Custom(Ident)
Users may define their own index types, which would not be covered by the above variants.
Trait Implementations§
Source§impl Ord for IndexType
impl Ord for IndexType
Source§impl PartialOrd for IndexType
impl PartialOrd for IndexType
Source§impl VisitMut for IndexType
impl VisitMut for IndexType
Source§fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
fn visit<V: VisitorMut>(&mut self, visitor: &mut V) -> ControlFlow<V::Break>
Mutably visit this node with the provided
VisitorMut. Read moreimpl Eq for IndexType
impl StructuralPartialEq for IndexType
Auto Trait Implementations§
impl Freeze for IndexType
impl RefUnwindSafe for IndexType
impl Send for IndexType
impl Sync for IndexType
impl Unpin for IndexType
impl UnsafeUnpin for IndexType
impl UnwindSafe for IndexType
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