Struct cfg::prediction::FollowSets
source · pub struct FollowSets { /* private fields */ }
Expand description
FOLLOW sets.
Implementations§
source§impl FollowSets
impl FollowSets
sourcepub fn new<'a, G>(
grammar: &'a G,
start_sym: Symbol,
first_sets: &PerSymbolSets
) -> Selfwhere
G: RuleContainer + Default,
&'a G: RuleContainerRef<'a, Target = G>,
pub fn new<'a, G>( grammar: &'a G, start_sym: Symbol, first_sets: &PerSymbolSets ) -> Selfwhere G: RuleContainer + Default, &'a G: RuleContainerRef<'a, Target = G>,
Compute all FOLLOW sets of the grammar. Returns FollowSets.
sourcepub fn follow_sets(&self) -> &PerSymbolSets
pub fn follow_sets(&self) -> &PerSymbolSets
Returns a reference to FOLLOW sets.
Auto Trait Implementations§
impl RefUnwindSafe for FollowSets
impl Send for FollowSets
impl Sync for FollowSets
impl Unpin for FollowSets
impl UnwindSafe for FollowSets
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