pub enum Assertion {
LineStart,
LineEnd,
TextStart,
TextEnd,
WordBoundary,
NotWordBoundary,
WordStart,
WordEnd,
TextEndOptionalNewline,
}Expand description
Zero-width assertions.
Variants§
LineStart
^
LineEnd
$
TextStart
\A
TextEnd
\Z (Python: end of text only)
WordBoundary
\b
NotWordBoundary
\B
WordStart
Rust \< or \b{start}: a word boundary with a word character next.
WordEnd
Rust \> or \b{end}: a word boundary with a word character before.
TextEndOptionalNewline
PCRE2 \Z: end of text or just before a final line break.
Trait Implementations§
impl Copy for Assertion
impl Eq for Assertion
impl StructuralPartialEq for Assertion
Auto Trait Implementations§
impl Forget for Assertion
impl Freeze for Assertion
impl RefUnwindSafe for Assertion
impl Send for Assertion
impl Sync for Assertion
impl Unpin for Assertion
impl UnsafeUnpin for Assertion
impl UnwindSafe for Assertion
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