pub enum AssertKind {
TextStart,
TextEnd,
LineStart,
LineEnd,
WordBoundary,
NotWordBoundary,
WordStart,
WordEnd,
}Expand description
Zero-width assertions on the neighbouring characters.
Variants§
TextStart
Start of the input.
TextEnd
End of the input.
LineStart
Start of input or just after a character of the line set.
LineEnd
End of input or just before a character of the line set.
WordBoundary
Previous and next characters differ in membership of the word set.
NotWordBoundary
Previous and next characters agree in membership of the word set.
WordStart
Not after a word character, before a word character.
WordEnd
After a word character, not before one.
Implementations§
Trait Implementations§
Source§impl Clone for AssertKind
impl Clone for AssertKind
impl Copy for AssertKind
Source§impl Debug for AssertKind
impl Debug for AssertKind
impl Eq for AssertKind
Source§impl Hash for AssertKind
impl Hash for AssertKind
Source§impl PartialEq for AssertKind
impl PartialEq for AssertKind
impl StructuralPartialEq for AssertKind
Auto Trait Implementations§
impl Forget for AssertKind
impl Freeze for AssertKind
impl RefUnwindSafe for AssertKind
impl Send for AssertKind
impl Sync for AssertKind
impl Unpin for AssertKind
impl UnsafeUnpin for AssertKind
impl UnwindSafe for AssertKind
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