Enum cbork_abnf_parser::abnf::Rule
source · pub enum Rule {
Show 24 variants
EOI,
abnf,
rule,
defined_as,
elements,
group,
option,
alternation,
concatenation,
repetition,
repeat,
element,
char_val,
num_val,
bin_val,
dec_val,
hex_val,
prose_val,
rulename,
c_wsp,
c_nl,
COMMENT,
WHITESPACE,
VCHAR,
}
Expand description
ABNF Grammar adapted from RFC5234 Section 4 and Appendix B https://datatracker.ietf.org/doc/html/rfc5234#section-4 https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
Variants§
EOI
End-of-input
abnf
rule
continues if next line starts with white space
defined_as
basic rules definition and incremental alternatives
elements
correction: https://www.rfc-editor.org/errata/eid2968
group
option
alternation
concatenation
repetition
repeat
element
char_val
quoted string of SP and VCHAR without DQUOTE
num_val
bin_val
series of concatenated bit values or single ONEOF range
dec_val
hex_val
prose_val
bracketed string of SP and VCHAR without “>” prose description, to be used as last resort correction: https://www.rfc-editor.org/errata/eid2914
rulename
c_wsp
c_nl
comment or newline
COMMENT
WHITESPACE
VCHAR
visible (printing) characters
Implementations§
Trait Implementations§
source§impl Ord for Rule
impl Ord for Rule
source§impl Parser<Rule> for ABNFParser
impl Parser<Rule> for ABNFParser
source§impl PartialOrd for Rule
impl PartialOrd for Rule
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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
)