pub enum Assertion {
StartText,
EndText,
StartLine {
crlf: bool,
},
EndLine {
crlf: bool,
},
LeftWordBoundary,
RightWordBoundary,
WordBoundary,
NotWordBoundary,
}
Expand description
Type of assertions
Variants§
StartText
Start of input text
EndText
End of input text
StartLine
Start of a line
EndLine
End of a line
LeftWordBoundary
Left word boundary
RightWordBoundary
Right word boundary
WordBoundary
Both word boundaries
NotWordBoundary
Not word boundary
Trait Implementations§
impl Copy for Assertion
impl Eq for Assertion
impl StructuralPartialEq for Assertion
Auto Trait Implementations§
impl Freeze for Assertion
impl RefUnwindSafe for Assertion
impl Send for Assertion
impl Sync for Assertion
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)