pub struct Cache { /* private fields */ }Implementations
sourceimpl Cache
impl Cache
pub fn build(dir: &Path) -> Result<Self, ThermiteError>
sourcepub fn clean(&mut self, name: &str, version: &str) -> Result<bool, ThermiteError>
pub fn clean(&mut self, name: &str, version: &str) -> Result<bool, ThermiteError>
Cleans all cached versions of a package except the version provided
sourcepub fn check(&self, path: impl AsRef<Path>) -> Option<File>
pub fn check(&self, path: impl AsRef<Path>) -> Option<File>
Checks if a path is in the current cache
pub fn path(&self) -> &Path
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Cache
impl Send for Cache
impl Sync for Cache
impl Unpin for Cache
impl UnwindSafe for Cache
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more