Trait tidb_query_datatype::codec::collation::Collator [−][src]
Associated Types
Loading content...Associated Constants
const IS_CASE_INSENSITIVE: bool
[src]
Required methods
fn char_weight(char: <Self::Charset as Charset>::Char) -> Self::Weight
[src]
Returns the weight of a given char. The chars that have equal weight are considered as the same char with this collation. See more on http://www.unicode.org/reports/tr10/#Weight_Level_Defn.
fn write_sort_key<W: BufferWriter>(writer: &mut W, bstr: &[u8]) -> Result<usize>
[src]
Writes the SortKey of bstr
into writer
.
fn sort_compare(a: &[u8], b: &[u8]) -> Result<Ordering>
[src]
Compares a
and b
based on their SortKey.
fn sort_hash<H: Hasher>(state: &mut H, bstr: &[u8]) -> Result<()>
[src]
Hashes bstr
based on its SortKey directly.
WARN: sort_hash(str) != hash(sort_key(str))
.
Provided methods
fn sort_key(bstr: &[u8]) -> Result<Vec<u8>>
[src]
Returns the SortKey of bstr
as an owned byte vector.