Struct inanis::cache::pawns::PawnHashTableEntry
source · pub struct PawnHashTableEntry {
pub key_data: AtomicU32,
}
Fields§
§key_data: AtomicU32
Implementations§
source§impl PawnHashTableEntry
impl PawnHashTableEntry
sourcepub fn set_data(&self, key: u16, score: i16)
pub fn set_data(&self, key: u16, score: i16)
Converts key
and score
into an atomic word, and stores it.
sourcepub fn get_data(&self) -> PawnHashTableResult
pub fn get_data(&self) -> PawnHashTableResult
Loads and parses atomic value into a PawnHashTableResult struct.
Trait Implementations§
source§impl Clone for PawnHashTableEntry
impl Clone for PawnHashTableEntry
source§fn clone(&self) -> Self
fn clone(&self) -> Self
Clones PawnHashTableEntry by creating a new atomic (with the original value).
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 Default for PawnHashTableEntry
impl Default for PawnHashTableEntry
source§fn default() -> Self
fn default() -> Self
Constructs a default instance of PawnHashTableEntry with zeroed elements.
Auto Trait Implementations§
impl RefUnwindSafe for PawnHashTableEntry
impl Send for PawnHashTableEntry
impl Sync for PawnHashTableEntry
impl Unpin for PawnHashTableEntry
impl UnwindSafe for PawnHashTableEntry
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