pub enum Element {
Rulename(String),
IString(String),
SString(String),
NumberValue(u32),
ValueRange((u32, u32)),
ValueSequence(Vec<u32>),
ProseValue(String),
Sequence(Vec<Repetition>),
Selection(Vec<Repetition>),
}Expand description
An individual element in an ABNF rule.
Variants§
Rulename(String)
rulename.
IString(String)
case insensitive string.
SString(String)
case seisitve string.
NumberValue(u32)
num-val.
ValueRange((u32, u32))
range of num-val.
ValueSequence(Vec<u32>)
sequence of num-val.
ProseValue(String)
prose-val.
Sequence(Vec<Repetition>)
concatination.
Selection(Vec<Repetition>)
alternation.
Trait Implementations§
impl StructuralPartialEq for Element
Auto Trait Implementations§
impl Freeze for Element
impl RefUnwindSafe for Element
impl Send for Element
impl Sync for Element
impl Unpin for Element
impl UnwindSafe for Element
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