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,
pub fn new<'a, G>(
grammar: &'a G,
start_sym: Symbol,
first_sets: &PerSymbolSets,
) -> Selfwhere
G: RuleContainer,
Compute all FOLLOW sets of the grammar. Returns FollowSets.
Trait Implementations§
Source§impl PredictSets for FollowSets
impl PredictSets for FollowSets
Source§fn predict_sets(&self) -> &PerSymbolSets
fn predict_sets(&self) -> &PerSymbolSets
Returns a reference to FIRST sets.
Auto Trait Implementations§
impl Freeze for FollowSets
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