pub enum CharKind {
Whitespace,
Word,
Punctuation,
}Expand description
Character classification used for word-boundary detection.
Variants§
Whitespace
Whitespace characters (spaces, tabs, newlines).
Word
Alphanumeric characters and underscore (_).
Punctuation
Punctuation and symbols (., ,, (, ), ;, +, etc.).
Trait Implementations§
impl Copy for CharKind
impl Eq for CharKind
impl StructuralPartialEq for CharKind
Auto Trait Implementations§
impl Freeze for CharKind
impl RefUnwindSafe for CharKind
impl Send for CharKind
impl Sync for CharKind
impl Unpin for CharKind
impl UnsafeUnpin for CharKind
impl UnwindSafe for CharKind
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