pub struct MacroExpansionCache { /* private fields */ }Expand description
Macro expansion cache.
Implementations§
Source§impl MacroExpansionCache
impl MacroExpansionCache
pub fn new(max_size: usize) -> Self
pub fn lookup( &mut self, macro_hash: u64, arg_hash: u64, ) -> Option<&MacroExpansionEntry>
pub fn store(&mut self, entry: MacroExpansionEntry)
pub fn total_stored(&self) -> usize
Auto Trait Implementations§
impl Freeze for MacroExpansionCache
impl RefUnwindSafe for MacroExpansionCache
impl Send for MacroExpansionCache
impl Sync for MacroExpansionCache
impl Unpin for MacroExpansionCache
impl UnsafeUnpin for MacroExpansionCache
impl UnwindSafe for MacroExpansionCache
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