pub struct CaseFold { /* private fields */ }Expand description
Sparse canonicalisation and the closure operations built on it.
Implementations§
Source§impl CaseFold
impl CaseFold
Sourcepub fn close(&self, s: &CharSet) -> CharSet
pub fn close(&self, s: &CharSet) -> CharSet
Characters matching any member of s case-insensitively.
Sourcepub fn close_python_class(
&self,
members: &CharSet,
categories: &CharSet,
) -> CharSet
pub fn close_python_class( &self, members: &CharSet, categories: &CharSet, ) -> CharSet
Python class semantics: range/literal members go through the
canonicalisation, while category sets (\w, \d, …) are tested on
the lowered input character as they are. A class with no cased member
is not folded at all (the interpreter emits a plain IN).
Auto Trait Implementations§
impl Forget for CaseFold
impl Freeze for CaseFold
impl RefUnwindSafe for CaseFold
impl Send for CaseFold
impl Sync for CaseFold
impl Unpin for CaseFold
impl UnsafeUnpin for CaseFold
impl UnwindSafe for CaseFold
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