pub enum BNFDescription<TT> {
Token(TT),
Tokens(Vec<TT>),
ExceptTokens(Vec<TT>),
ChoiceStart(DescriptionIndex, DescriptionIndex),
ChoiceMidEnd(DescriptionIndex),
ChoiceMidStart(DescriptionIndex, DescriptionIndex),
ChoiceEnd,
OptionStart(DescriptionIndex),
OptionEnd,
RepetitionStart(DescriptionIndex),
RepetitionEnd(DescriptionIndex),
Rule(RuleIndex),
}Variants§
Token(TT)
Tokens(Vec<TT>)
ExceptTokens(Vec<TT>)
ChoiceStart(DescriptionIndex, DescriptionIndex)
ChoiceMidEnd(DescriptionIndex)
ChoiceMidStart(DescriptionIndex, DescriptionIndex)
ChoiceEnd
OptionStart(DescriptionIndex)
OptionEnd
RepetitionStart(DescriptionIndex)
RepetitionEnd(DescriptionIndex)
Rule(RuleIndex)
Implementations§
Source§impl<TT> BNFDescription<TT>
impl<TT> BNFDescription<TT>
pub fn format<F, GetTokenTypeName, TokenTypeName, GetRuleName, RuleName>( &self, f: &mut F, get_token_type_name: GetTokenTypeName, get_rule_name: GetRuleName, ) -> Result
pub fn display<GetTokenTypeName, TokenTypeName, GetRuleName, RuleName>( &self, get_token_type_name: GetTokenTypeName, get_rule_name: GetRuleName, ) -> Result
Trait Implementations§
Source§impl<TT: Clone> Clone for BNFDescription<TT>
impl<TT: Clone> Clone for BNFDescription<TT>
Source§fn clone(&self) -> BNFDescription<TT>
fn clone(&self) -> BNFDescription<TT>
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<TT> Freeze for BNFDescription<TT>where
TT: Freeze,
impl<TT> RefUnwindSafe for BNFDescription<TT>where
TT: RefUnwindSafe,
impl<TT> Send for BNFDescription<TT>where
TT: Send,
impl<TT> Sync for BNFDescription<TT>where
TT: Sync,
impl<TT> Unpin for BNFDescription<TT>where
TT: Unpin,
impl<TT> UnwindSafe for BNFDescription<TT>where
TT: UnwindSafe,
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