pub struct CollationRegistry { /* private fields */ }Expand description
Registry for collation functions, keyed by case-insensitive name.
Pre-populated with the three built-in collations: BINARY, NOCASE, RTRIM.
Custom collations can be registered via CollationRegistry::register.
Implementations§
Source§impl CollationRegistry
impl CollationRegistry
Sourcepub fn register<C: CollationFunction + 'static>(
&mut self,
collation: C,
) -> Option<Arc<dyn CollationFunction>>
pub fn register<C: CollationFunction + 'static>( &mut self, collation: C, ) -> Option<Arc<dyn CollationFunction>>
Register a custom collation. Returns the previous collation with the same name if one existed (overwrites).
Collation names are case-insensitive.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CollationRegistry
impl !RefUnwindSafe for CollationRegistry
impl Send for CollationRegistry
impl Sync for CollationRegistry
impl Unpin for CollationRegistry
impl UnsafeUnpin for CollationRegistry
impl !UnwindSafe for CollationRegistry
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