pub enum TextOp {
Class(TextClass),
Literal(char),
Any,
CaptureStart,
CaptureEnd,
Repeat {
min: usize,
max: Option<usize>,
greedy: bool,
},
Balanced {
open: char,
close: char,
},
Frontier(TextClass),
AnchorStart,
AnchorEnd,
}Expand description
One operation in the shared text-pattern VM.
Variants§
Class(TextClass)
Match one character from a class.
Literal(char)
Match one literal character.
Any
Match any one character.
CaptureStart
Start a capture at the current byte offset.
CaptureEnd
End the most recent open capture at the current byte offset.
Repeat
Quantify the previous consuming operation.
Fields
Balanced
Match balanced text beginning with open and ending at its paired close.
Frontier(TextClass)
Match a frontier before a character in the class.
AnchorStart
Match the start of the subject.
AnchorEnd
Match the end of the subject.
Trait Implementations§
impl Eq for TextOp
impl StructuralPartialEq for TextOp
Auto Trait Implementations§
impl Freeze for TextOp
impl RefUnwindSafe for TextOp
impl Send for TextOp
impl Sync for TextOp
impl Unpin for TextOp
impl UnsafeUnpin for TextOp
impl UnwindSafe for TextOp
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