pub struct PatternInfo {
pub literal: String,
pub is_keyword: bool,
pub not_followed_by: Vec<String>,
pub leading_rule: Option<String>,
}Expand description
Information extracted from an operator pattern
Fields§
§literal: StringThe literal operator string (e.g., “+”, “===”)
is_keyword: boolWhether this is a keyword (needs word boundary check)
not_followed_by: Vec<String>Strings that must NOT follow the operator (e.g., “=” for “=” to not match “==”)
leading_rule: Option<String>Optional leading rule to parse (e.g., whitespace)
Trait Implementations§
Source§impl Clone for PatternInfo
impl Clone for PatternInfo
Source§fn clone(&self) -> PatternInfo
fn clone(&self) -> PatternInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PatternInfo
impl RefUnwindSafe for PatternInfo
impl Send for PatternInfo
impl Sync for PatternInfo
impl Unpin for PatternInfo
impl UnsafeUnpin for PatternInfo
impl UnwindSafe for PatternInfo
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