Enum parser_database::IndexAlgorithm
source · #[repr(u8)]pub enum IndexAlgorithm {
BTree = 1,
Hash = 2,
Gist = 4,
Gin = 8,
SpGist = 16,
Brin = 32,
}
Expand description
A type of index as defined by the type: ...
argument on an index attribute.
ⓘ
@@index([a, b], type: Hash)
^^^^^^^^^^
Variants§
BTree = 1
Binary tree index (the default in most databases)
Hash = 2
Hash index
Gist = 4
GiST index
Gin = 8
GIN index
SpGist = 16
SP-GiST index
Brin = 32
Brin index
Implementations§
source§impl IndexAlgorithm
impl IndexAlgorithm
sourcepub fn supports_field_type(self, field: IndexFieldWalker<'_>) -> bool
pub fn supports_field_type(self, field: IndexFieldWalker<'_>) -> bool
True if the operator class can be used with the given scalar type.
sourcepub fn documentation(self) -> &'static str
pub fn documentation(self) -> &'static str
Documentation for editor autocompletion.
Trait Implementations§
source§impl BitAnd for IndexAlgorithm
impl BitAnd for IndexAlgorithm
source§impl BitFlag for IndexAlgorithm
impl BitFlag for IndexAlgorithm
source§impl BitOr for IndexAlgorithm
impl BitOr for IndexAlgorithm
source§impl BitXor for IndexAlgorithm
impl BitXor for IndexAlgorithm
source§impl Clone for IndexAlgorithm
impl Clone for IndexAlgorithm
source§fn clone(&self) -> IndexAlgorithm
fn clone(&self) -> IndexAlgorithm
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for IndexAlgorithm
impl Debug for IndexAlgorithm
source§impl Default for IndexAlgorithm
impl Default for IndexAlgorithm
source§impl Display for IndexAlgorithm
impl Display for IndexAlgorithm
source§impl Not for IndexAlgorithm
impl Not for IndexAlgorithm
source§impl PartialEq for IndexAlgorithm
impl PartialEq for IndexAlgorithm
source§fn eq(&self, other: &IndexAlgorithm) -> bool
fn eq(&self, other: &IndexAlgorithm) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl RawBitFlags for IndexAlgorithm
impl RawBitFlags for IndexAlgorithm
source§const EMPTY: Self::Numeric = {transmute(0x00): <types::IndexAlgorithm as enumflags2::_internal::RawBitFlags>::Numeric}
const EMPTY: Self::Numeric = {transmute(0x00): <types::IndexAlgorithm as enumflags2::_internal::RawBitFlags>::Numeric}
A value with no bits set.
source§const DEFAULT: Self::Numeric = {transmute(0x00): <types::IndexAlgorithm as enumflags2::_internal::RawBitFlags>::Numeric}
const DEFAULT: Self::Numeric = {transmute(0x00): <types::IndexAlgorithm as enumflags2::_internal::RawBitFlags>::Numeric}
The value used by the Default implementation. Equivalent to EMPTY, unless
customized.
source§const ALL_BITS: Self::Numeric = {transmute(0x3f): <types::IndexAlgorithm as enumflags2::_internal::RawBitFlags>::Numeric}
const ALL_BITS: Self::Numeric = {transmute(0x3f): <types::IndexAlgorithm as enumflags2::_internal::RawBitFlags>::Numeric}
A value with all flag bits set.
source§const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<IndexAlgorithm>"
const BITFLAGS_TYPE_NAME: &'static str = "BitFlags<IndexAlgorithm>"
The name of the type for debug formatting purposes. Read more
impl Copy for IndexAlgorithm
impl StructuralPartialEq for IndexAlgorithm
Auto Trait Implementations§
impl RefUnwindSafe for IndexAlgorithm
impl Send for IndexAlgorithm
impl Sync for IndexAlgorithm
impl Unpin for IndexAlgorithm
impl UnwindSafe for IndexAlgorithm
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