pub enum Production {
Show 13 variants
And(Vec<Production>),
Ascii(Ascii),
Atomic(Box<Production>),
CompoundAtomic(Box<Production>),
Literal(String),
Named(String),
Not(Box<Production>),
OneOrMore(Box<Production>),
Optional(Box<Production>),
Or(Vec<Production>),
Range(Range<char>),
Special(Special),
ZeroOrMore(Box<Production>),
}Variants§
And(Vec<Production>)
Ascii(Ascii)
Atomic(Box<Production>)
CompoundAtomic(Box<Production>)
Literal(String)
Named(String)
Not(Box<Production>)
OneOrMore(Box<Production>)
Optional(Box<Production>)
Or(Vec<Production>)
Range(Range<char>)
Special(Special)
ZeroOrMore(Box<Production>)
Trait Implementations§
Source§impl Clone for Production
impl Clone for Production
Source§fn clone(&self) -> Production
fn clone(&self) -> Production
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 moreSource§impl Debug for Production
impl Debug for Production
Source§impl From<&str> for Production
impl From<&str> for Production
Source§fn from(string: &str) -> Production
fn from(string: &str) -> Production
Converts to this type from the input type.
Source§impl From<Ascii> for Production
impl From<Ascii> for Production
Source§fn from(ascii: Ascii) -> Production
fn from(ascii: Ascii) -> Production
Converts to this type from the input type.
Source§impl From<Special> for Production
impl From<Special> for Production
Source§fn from(matcher: Special) -> Production
fn from(matcher: Special) -> Production
Converts to this type from the input type.
Source§impl From<String> for Production
impl From<String> for Production
Source§fn from(string: String) -> Production
fn from(string: String) -> Production
Converts to this type from the input type.
Source§impl Into<Production> for Match
impl Into<Production> for Match
Source§fn into(self) -> Production
fn into(self) -> Production
Converts this type into the (usually inferred) input type.
Source§impl Matcher for &Production
impl Matcher for &Production
fn is_match( &self, state: &mut State, input: &str, start: &Position, ) -> Option<Match>
fn name(&self) -> &str
fn to_str(&self) -> String
fn as_production(&self) -> Production
fn as_mut(&self) -> &mut Self
fn to_dbg(&self) -> String
fn span(&self, start: &Position, input: &str) -> Span
Source§impl Matcher for Production
impl Matcher for Production
fn is_match( &self, state: &mut State, input: &str, start: &Position, ) -> Option<Match>
fn name(&self) -> &str
fn to_str(&self) -> String
fn as_production(&self) -> Production
fn as_mut(&self) -> &mut Self
fn to_dbg(&self) -> String
fn span(&self, start: &Position, input: &str) -> Span
Source§impl PartialEq for Production
impl PartialEq for Production
impl Eq for Production
impl StructuralPartialEq for Production
Auto Trait Implementations§
impl Freeze for Production
impl RefUnwindSafe for Production
impl Send for Production
impl Sync for Production
impl Unpin for Production
impl UnwindSafe for Production
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