Function regex_syntax::unicode::simple_fold [−][src]
pub fn simple_fold(c: char) -> Result<SimpleFoldIter, Option<char>>
Return an iterator over the equivalence class of simple case mappings for the given codepoint. The equivalence class does not include the given codepoint.
If the equivalence class is empty, then this returns the next scalar
value that has a non-empty equivalence class, if it exists. If no such
scalar value exists, then None
is returned. The point of this behavior
is to permit callers to avoid calling simple_fold
more than they need
to, since there is some cost to fetching the equivalence class.