pub struct ContentHashCache { /* private fields */ }Implementations§
Source§impl ContentHashCache
impl ContentHashCache
pub fn new(capacity: usize) -> Self
pub fn check_and_update( &mut self, path: PathBuf, content: &[u8], ) -> ContentHashObservation
pub fn check_hash_and_update( &mut self, path: PathBuf, new_hash: u64, ) -> ContentHashObservation
pub fn observe_hash( &self, path: &PathBuf, new_hash: u64, ) -> ContentHashObservation
pub fn record_hash(&mut self, path: PathBuf, new_hash: u64)
pub fn remove(&mut self, path: &PathBuf)
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn capacity(&self) -> usize
pub fn clear(&mut self)
Trait Implementations§
Source§impl Clone for ContentHashCache
impl Clone for ContentHashCache
Source§fn clone(&self) -> ContentHashCache
fn clone(&self) -> ContentHashCache
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContentHashCache
impl RefUnwindSafe for ContentHashCache
impl Send for ContentHashCache
impl Sync for ContentHashCache
impl Unpin for ContentHashCache
impl UnsafeUnpin for ContentHashCache
impl UnwindSafe for ContentHashCache
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