pub enum CollationProvider {
Libc,
Icu,
Builtin,
}Expand description
Locale-data provider — controls which OS / library produces the sort + ctype tables.
Variants§
Libc
pg_collation.collprovider = 'c'.
Icu
pg_collation.collprovider = 'i'.
Builtin
pg_collation.collprovider = 'b' — PG 17+ only.
Implementations§
Source§impl CollationProvider
impl CollationProvider
Sourcepub const fn sql_keyword(self) -> &'static str
pub const fn sql_keyword(self) -> &'static str
SQL keyword used in CREATE COLLATION … (provider = …).
Trait Implementations§
Source§impl Clone for CollationProvider
impl Clone for CollationProvider
Source§fn clone(&self) -> CollationProvider
fn clone(&self) -> CollationProvider
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 CollationProvider
Source§impl Debug for CollationProvider
impl Debug for CollationProvider
Source§impl<'de> Deserialize<'de> for CollationProvider
impl<'de> Deserialize<'de> for CollationProvider
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 CollationProvider
Source§impl PartialEq for CollationProvider
impl PartialEq for CollationProvider
Source§fn eq(&self, other: &CollationProvider) -> bool
fn eq(&self, other: &CollationProvider) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CollationProvider
impl Serialize for CollationProvider
impl StructuralPartialEq for CollationProvider
Auto Trait Implementations§
impl Freeze for CollationProvider
impl RefUnwindSafe for CollationProvider
impl Send for CollationProvider
impl Sync for CollationProvider
impl Unpin for CollationProvider
impl UnsafeUnpin for CollationProvider
impl UnwindSafe for CollationProvider
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