#[repr(C)]pub struct HashIndexEntry {
pub hash: u64,
pub index: u32,
pub _pad: [u8; 4],
}Expand description
Hash table entry for $O(\log N)$ or binary search lookup by string hash.
Fields§
§hash: u6464-bit FNV-1a hash of the string (path or symbol)
index: u32Index into the corresponding records table (defs or refs)
_pad: [u8; 4]Implementations§
Trait Implementations§
Source§impl Clone for HashIndexEntry
impl Clone for HashIndexEntry
impl Copy for HashIndexEntry
Source§impl Debug for HashIndexEntry
impl Debug for HashIndexEntry
Source§impl Default for HashIndexEntry
impl Default for HashIndexEntry
impl Eq for HashIndexEntry
Source§impl PartialEq for HashIndexEntry
impl PartialEq for HashIndexEntry
impl StructuralPartialEq for HashIndexEntry
Auto Trait Implementations§
impl Forget for HashIndexEntry
impl Freeze for HashIndexEntry
impl Move for HashIndexEntry
impl RefUnwindSafe for HashIndexEntry
impl Send for HashIndexEntry
impl Sync for HashIndexEntry
impl Unpin for HashIndexEntry
impl UnsafeUnpin for HashIndexEntry
impl UnwindSafe for HashIndexEntry
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