pub struct LLVMAnalysisCache { /* private fields */ }Implementations§
Source§impl LLVMAnalysisCache
impl LLVMAnalysisCache
pub fn new(max_size: usize) -> Self
pub fn get(&mut self, key: &str) -> Option<&LLVMCacheEntry>
pub fn insert(&mut self, key: String, data: Vec<u8>)
pub fn invalidate(&mut self, key: &str)
pub fn clear(&mut self)
pub fn hit_rate(&self) -> f64
pub fn size(&self) -> usize
Trait Implementations§
Source§impl Clone for LLVMAnalysisCache
impl Clone for LLVMAnalysisCache
Source§fn clone(&self) -> LLVMAnalysisCache
fn clone(&self) -> LLVMAnalysisCache
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LLVMAnalysisCache
impl RefUnwindSafe for LLVMAnalysisCache
impl Send for LLVMAnalysisCache
impl Sync for LLVMAnalysisCache
impl Unpin for LLVMAnalysisCache
impl UnsafeUnpin for LLVMAnalysisCache
impl UnwindSafe for LLVMAnalysisCache
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