pub struct TT<T> { /* private fields */ }Implementations§
Source§impl<T: TTData + Copy + Clone> TT<T>
impl<T: TTData + Copy + Clone> TT<T>
pub fn new() -> Self
pub fn with_size(size_mb: usize) -> Self
pub fn get(&self, hash: u64) -> Option<&T>
pub fn insert(&mut self, hash: u64, data: T)
pub fn size(&self) -> usize
pub fn heap_alloc_size(&self) -> usize
pub fn len(&self) -> usize
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for TT<T>
impl<T> RefUnwindSafe for TT<T>where
T: RefUnwindSafe,
impl<T> Send for TT<T>where
T: Send,
impl<T> Sync for TT<T>where
T: Sync,
impl<T> Unpin for TT<T>where
T: Unpin,
impl<T> UnwindSafe for TT<T>where
T: UnwindSafe,
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