[−][src]Struct cfg::symbol::set::SymbolBitSet
A set of symbols in the form of a bit vector.
Methods
impl SymbolBitSet
[src]
pub fn new<'a, G>(grammar: &'a G, elem: bool) -> Self where
G: ContextFree,
&'a G: ContextFreeRef<'a, Target = G>,
[src]
G: ContextFree,
&'a G: ContextFreeRef<'a, Target = G>,
Constructs a SymbolBitSet
.
pub fn terminal_set<'a, G>(grammar: &'a G) -> Self where
G: ContextFree,
&'a G: ContextFreeRef<'a, Target = G>,
[src]
G: ContextFree,
&'a G: ContextFreeRef<'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.
pub fn terminal_or_nulling_set<'a, G>(grammar: &'a G) -> Self where
G: ContextFree,
&'a G: ContextFreeRef<'a, Target = G>,
[src]
G: ContextFree,
&'a G: ContextFreeRef<'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.
pub fn set(&mut self, sym: Symbol, value: bool)
[src]
Set the entry for a symbol.
pub fn has_sym(&self, sym: Symbol) -> bool
[src]
Checks whether a given symbol is in this set.
pub fn into_bit_vec(self) -> BitVec
[src]
Converts into a bit vector.
ⓘImportant traits for Iter<'a>pub fn iter(&self) -> Iter
[src]
ⓘImportant traits for Iter<'a>
Iterates over symbols in the set.
Auto Trait Implementations
impl Send for SymbolBitSet
impl Sync for SymbolBitSet
impl Unpin for SymbolBitSet
impl UnwindSafe for SymbolBitSet
impl RefUnwindSafe for SymbolBitSet
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,