pub struct Lookahead {
pub is_positive: bool,
pub pattern: String,
}Expand description
A lookahead that is used to match the input. The lookahead is a regular expression that must match after the pattern for the pattern to be considered a match. The lookahead can be positive or negative. If the lookahead is positive, it must match for the pattern to be considered a match. If the lookahead is negative, it must not match for the pattern to be considered a match. The lookahead is optional. The characters read by the lookahead are not included in the match.
Fields§
§is_positive: boolIf the lookahead is positive.
pattern: StringThe lookahead pattern.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Lookahead
impl<'de> Deserialize<'de> for Lookahead
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Lookahead
impl StructuralPartialEq for Lookahead
Auto Trait Implementations§
impl Freeze for Lookahead
impl RefUnwindSafe for Lookahead
impl Send for Lookahead
impl Sync for Lookahead
impl Unpin for Lookahead
impl UnwindSafe for Lookahead
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)