pub enum ConstraintBacking {
Range,
Hash,
}Expand description
What a uniqueness or key constraint’s backing index keeps.
Variants§
Range
The hash index the uniqueness check reads and a sorted copy of each value, which also answers range, prefix and ordered seeks (the default, as a RANGE index).
Hash
The hash index alone (OPTIONS { indexProvider: 'hash' }): about
80 bytes less per entity for a string key, and no range, prefix or
ordered seeks on it (G-64).
Trait Implementations§
Source§impl Clone for ConstraintBacking
impl Clone for ConstraintBacking
impl Copy for ConstraintBacking
Source§impl Debug for ConstraintBacking
impl Debug for ConstraintBacking
Source§impl Default for ConstraintBacking
impl Default for ConstraintBacking
Source§impl<'de> Deserialize<'de> for ConstraintBacking
impl<'de> Deserialize<'de> for ConstraintBacking
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ConstraintBacking
Source§impl PartialEq for ConstraintBacking
impl PartialEq for ConstraintBacking
Source§impl Serialize for ConstraintBacking
impl Serialize for ConstraintBacking
impl StructuralPartialEq for ConstraintBacking
Auto Trait Implementations§
impl Freeze for ConstraintBacking
impl RefUnwindSafe for ConstraintBacking
impl Send for ConstraintBacking
impl Sync for ConstraintBacking
impl Unpin for ConstraintBacking
impl UnsafeUnpin for ConstraintBacking
impl UnwindSafe for ConstraintBacking
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more