Struct cfg::symbol::set::SymbolBitSet
source · pub struct SymbolBitSet { /* private fields */ }
Expand description
A set of symbols in the form of a bit vector.
Implementations§
source§impl SymbolBitSet
impl SymbolBitSet
sourcepub fn new<'a, G>(grammar: &'a G, elem: bool) -> Selfwhere
G: RuleContainer + Default,
&'a G: RuleContainerRef<'a, Target = G>,
pub fn new<'a, G>(grammar: &'a G, elem: bool) -> Selfwhere G: RuleContainer + Default, &'a G: RuleContainerRef<'a, Target = G>,
Constructs a SymbolBitSet
.
sourcepub fn terminal_set<'a, G>(grammar: &'a G) -> Selfwhere
G: RuleContainer + Default,
&'a G: RuleContainerRef<'a, Target = G>,
pub fn terminal_set<'a, G>(grammar: &'a G) -> Selfwhere G: RuleContainer + Default, &'a G: RuleContainerRef<'a, Target = G>,
Gathers information about whether symbols are terminal or nonterminal. Constructs a set of terminal symbols.
Constructs a data structure in O(n) time.
sourcepub fn terminal_or_nulling_set<'a, G>(grammar: &'a G) -> Selfwhere
G: RuleContainer + Default,
&'a G: RuleContainerRef<'a, Target = G>,
pub fn terminal_or_nulling_set<'a, G>(grammar: &'a G) -> Selfwhere G: RuleContainer + Default, &'a G: RuleContainerRef<'a, Target = G>,
Gathers information about whether symbols are terminal or nonterminal. Constructs a set of terminal symbols.
Constructs a data structure in O(n) time.
sourcepub fn into_bit_vec(self) -> BitVec
pub fn into_bit_vec(self) -> BitVec
Converts into a bit vector.
Auto Trait Implementations§
impl RefUnwindSafe for SymbolBitSet
impl Send for SymbolBitSet
impl Sync for SymbolBitSet
impl Unpin for SymbolBitSet
impl UnwindSafe for SymbolBitSet
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