pub enum CharKind {
Word,
Punctuation,
Whitespace,
}Expand description
Character classification for word boundary detection.
Characters are classified into three categories:
Word: Alphanumeric and underscore (the “keyword” characters)Punctuation: Non-whitespace, non-word charactersWhitespace: Spaces, tabs, newlines, etc.
Variants§
Word
Word character: alphanumeric or underscore.
Punctuation
Punctuation: non-whitespace, non-word.
Whitespace
Whitespace: space, tab, newline, 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