pub trait CollationProvider: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn compare(&self, a: &str, b: &str) -> Ordering;
// Provided methods
fn supports_substring_search(&self) -> bool { ... }
fn normalize(&self, s: &str) -> String { ... }
}Expand description
A custom collation — sort order for string comparison.
Required Methods§
Provided Methods§
Sourcefn supports_substring_search(&self) -> bool
fn supports_substring_search(&self) -> bool
Whether this collation supports substring search (for FTS / LIKE compatibility).
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".