pub struct DummyBucket;
Expand description
Dummy Bucket holds no data. This is useful for running a search effectively without a transposition table.
Trait Implementations§
Source§impl Clone for DummyBucket
impl Clone for DummyBucket
Source§fn clone(&self) -> DummyBucket
fn clone(&self) -> DummyBucket
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for DummyBucket
impl Debug for DummyBucket
Source§impl Default for DummyBucket
impl Default for DummyBucket
Source§fn default() -> DummyBucket
fn default() -> DummyBucket
Returns the “default value” for a type. Read more
Source§impl PartialEq for DummyBucket
impl PartialEq for DummyBucket
Source§impl TwoBucket for DummyBucket
impl TwoBucket for DummyBucket
Source§fn get(&self, _hash: HashKind) -> Option<Entry>
fn get(&self, _hash: HashKind) -> Option<Entry>
Returns an entry if its corresponding hash exists in this bucket.
If no entry’s hash matches the given hash, returns None.
Source§fn contains(&self, _hash: HashKind) -> bool
fn contains(&self, _hash: HashKind) -> bool
Returns true if this bucket has any entry which contains the given hash.
Source§fn store(&self, _general_entry: Entry)
fn store(&self, _general_entry: Entry)
Unconditionally store the entry in the general slot, without updating age.
Source§fn replace(&self, _priority_entry: Entry, _age: u8)
fn replace(&self, _priority_entry: Entry, _age: u8)
Unconditionally place the entry in the priority slot and update age.
Source§fn swap_replace(&self, _priority_entry: Entry, _age: u8)
fn swap_replace(&self, _priority_entry: Entry, _age: u8)
Move the existing priority entry to the general slot,
then place the new priority entry into the priority slot and update age.
Source§fn replace_by<F>(&self, _entry: Entry, _age: u8, _should_replace: F)
fn replace_by<F>(&self, _entry: Entry, _age: u8, _should_replace: F)
Replaces the
priority
slot if should_replace
returns true,
otherwise the general
slot is replaced. Read moreimpl Copy for DummyBucket
impl Eq for DummyBucket
impl StructuralPartialEq for DummyBucket
Auto Trait Implementations§
impl Freeze for DummyBucket
impl RefUnwindSafe for DummyBucket
impl Send for DummyBucket
impl Sync for DummyBucket
impl Unpin for DummyBucket
impl UnwindSafe for DummyBucket
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