pub struct TopK<T: Ord + Clone + Hash + Debug> { /* private fields */ }Implementations§
Source§impl<T: Ord + Clone + Hash + Debug> TopK<T>
impl<T: Ord + Clone + Hash + Debug> TopK<T>
pub fn builder() -> Builder<T>
pub fn new(k: usize, width: usize, depth: usize, decay: f64) -> Self
pub fn with_seed( k: usize, width: usize, depth: usize, decay: f64, seed: u64, ) -> Self
pub fn with_hasher( k: usize, width: usize, depth: usize, decay: f64, hasher: RandomState, ) -> Self
pub fn query<Q>(&self, item: &Q) -> bool
pub fn count<Q>(&self, item: &Q) -> u64
pub fn add<Q>(&mut self, item: &Q, increment: u64)
pub fn list(&self) -> Vec<Node<T>>
pub fn debug(&self)
pub fn merge(&mut self, other: &Self) -> Result<(), HeavyKeeperError>
Auto Trait Implementations§
impl<T> Freeze for TopK<T>
impl<T> !RefUnwindSafe for TopK<T>
impl<T> Send for TopK<T>where
T: Send,
impl<T> Sync for TopK<T>where
T: Sync,
impl<T> Unpin for TopK<T>where
T: Unpin,
impl<T> UnsafeUnpin for TopK<T>
impl<T> !UnwindSafe for TopK<T>
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