pub enum Absent {
Repeater(Box<Expr>),
Expression {
absent: Box<Expr>,
exp: Box<Expr>,
},
Stopper(Box<Expr>),
Clear,
}Expand description
Type of absent operator as used for Oniguruma’s absent functionality.
Variants§
Repeater(Box<Expr>)
Absent repeater (?~absent) - works like \O* (match any character including newline, repeated)
but is limited by the range that does not include the string match with absent.
This is a written abbreviation of (?~|absent|\O*).
Expression
Absent expression (?~|absent|exp) - works like exp, but is limited by the range
that does not include the string match with absent.
Stopper(Box<Expr>)
Absent stopper (?~|absent) - after this operator, haystack range is limited
up to the point where absent matches.
Clear
Range clear (?~|) - clears the effects caused by absent stoppers.
Trait Implementations§
impl Eq for Absent
impl StructuralPartialEq for Absent
Auto Trait Implementations§
impl Freeze for Absent
impl RefUnwindSafe for Absent
impl Send for Absent
impl Sync for Absent
impl Unpin for Absent
impl UnsafeUnpin for Absent
impl UnwindSafe for Absent
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