pub struct ArtifactCache { /* private fields */ }Expand description
The artifact cache — maps source hash to compiled artifact.
Implementations§
Source§impl ArtifactCache
impl ArtifactCache
pub fn new() -> Self
pub fn get(&self, source_hash: u64) -> Option<CompiledArtifact>
pub fn store(&self, artifact: CompiledArtifact)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ArtifactCache
impl RefUnwindSafe for ArtifactCache
impl Send for ArtifactCache
impl Sync for ArtifactCache
impl Unpin for ArtifactCache
impl UnsafeUnpin for ArtifactCache
impl UnwindSafe for ArtifactCache
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