pub fn unicode_case_eq<T, U>(
) -> Result<Option<bool>, T::Error> where
T: Intern<Symbol = U>,
Compare the byte contents of two symbols using Unicode case-folding comparison for equality.
The byteslice associated with each symbol is resolved via the given
interner. Unresolved symbols are compared as if they resolve to
This comparison function attempts to convert each symbol's byte content to a
str. If both symbols resolve to UTF-8 contents, Unicode
case folding is used when comparing the contents and this function returns
Ok(Some(bool)). If neither symbol resolves to UTF-8 contents, this
function falls back to
ascii_casecmp and returns
Otherwise, the two symbols have byte contents with different encodings and
Ok(None) is returned.
If the interner returns an error while retrieving a symbol, that error is