Enum PatternKind
pub enum PatternKind {
Str,
RE,
}Expand description
Which kind of pattern a terminal carries (Lark’s two Pattern subclasses).
Variants§
Str
A literal string (PatternStr) — escaped into a regex by Pattern::to_regexp.
RE
A regular expression (PatternRE) — passed through, flag-wrapped only.
Trait Implementations§
§impl Clone for PatternKind
impl Clone for PatternKind
§fn clone(&self) -> PatternKind
fn clone(&self) -> PatternKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for PatternKind
§impl Debug for PatternKind
impl Debug for PatternKind
impl Eq for PatternKind
§impl Hash for PatternKind
impl Hash for PatternKind
§impl PartialEq for PatternKind
impl PartialEq for PatternKind
impl StructuralPartialEq for PatternKind
Auto Trait Implementations§
impl Freeze for PatternKind
impl RefUnwindSafe for PatternKind
impl Send for PatternKind
impl Sync for PatternKind
impl Unpin for PatternKind
impl UnsafeUnpin for PatternKind
impl UnwindSafe for PatternKind
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