pub struct LinkedProgramCache { /* private fields */ }Implementations§
Source§impl LinkedProgramCache
impl LinkedProgramCache
pub fn new() -> Self
pub fn with_capacity(capacity: usize) -> Self
pub fn get_or_compile( &mut self, source: &str, surface: impl Borrow<LashlangSurface>, ) -> Result<Arc<CompiledLinkedProgram>, LinkedProgramCacheError>
pub fn clear(&mut self)
pub fn stats(&self) -> CompiledProgramCacheStats
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for LinkedProgramCache
impl !UnwindSafe for LinkedProgramCache
impl Freeze for LinkedProgramCache
impl Send for LinkedProgramCache
impl Sync for LinkedProgramCache
impl Unpin for LinkedProgramCache
impl UnsafeUnpin for LinkedProgramCache
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