[][src]Struct cfg::symbol::set::SymbolBitSet

pub struct SymbolBitSet { /* fields omitted */ }

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]

Constructs a SymbolBitSet.

pub fn terminal_set<'a, G>(grammar: &'a G) -> Self where
    G: ContextFree,
    &'a G: ContextFreeRef<'a, Target = G>, 
[src]

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]

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]

Iterates over symbols in the set.

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]