Struct parol::analysis::k_decision::FollowCache
source · pub struct FollowCache(pub Rc<RefCell<[Option<CacheEntry>; 11]>>);
Expand description
Cache of FollowSets
Tuple Fields§
§0: Rc<RefCell<[Option<CacheEntry>; 11]>>
Implementations§
source§impl FollowCache
impl FollowCache
sourcepub fn get(
&self,
k: usize,
grammar_config: &GrammarConfig,
first_cache: &FirstCache,
) -> CacheEntry
pub fn get( &self, k: usize, grammar_config: &GrammarConfig, first_cache: &FirstCache, ) -> CacheEntry
Utilizes the cache to get a FollowSet
Trait Implementations§
source§impl Debug for FollowCache
impl Debug for FollowCache
source§impl Default for FollowCache
impl Default for FollowCache
source§fn default() -> FollowCache
fn default() -> FollowCache
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for FollowCache
impl !RefUnwindSafe for FollowCache
impl !Send for FollowCache
impl !Sync for FollowCache
impl Unpin for FollowCache
impl !UnwindSafe for FollowCache
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