#[repr(C)]pub struct HashTable {
pub numOfBuckets: c_long,
pub numOfElements: c_long,
pub bucketArray: *mut *mut KeyValuePair,
pub idealRatio: f32,
pub lowerRehashThreshold: f32,
pub upperRehashThreshold: f32,
pub keycmp: Option<unsafe extern "C" fn(key1: *const c_void, key2: *const c_void) -> c_int>,
pub valuecmp: Option<unsafe extern "C" fn(value1: *const c_void, value2: *const c_void) -> c_int>,
pub hashFunction: Option<unsafe extern "C" fn(key: *const c_void) -> c_ulong>,
pub keyDeallocator: Option<unsafe extern "C" fn(key: *mut c_void)>,
pub valueDeallocator: Option<unsafe extern "C" fn(value: *mut c_void)>,
}Fields§
§numOfBuckets: c_long§numOfElements: c_long§bucketArray: *mut *mut KeyValuePair§idealRatio: f32§lowerRehashThreshold: f32§upperRehashThreshold: f32§keycmp: Option<unsafe extern "C" fn(key1: *const c_void, key2: *const c_void) -> c_int>§valuecmp: Option<unsafe extern "C" fn(value1: *const c_void, value2: *const c_void) -> c_int>§hashFunction: Option<unsafe extern "C" fn(key: *const c_void) -> c_ulong>§keyDeallocator: Option<unsafe extern "C" fn(key: *mut c_void)>§valueDeallocator: Option<unsafe extern "C" fn(value: *mut c_void)>Trait Implementations§
Auto Trait Implementations§
impl Freeze for HashTable
impl RefUnwindSafe for HashTable
impl !Send for HashTable
impl !Sync for HashTable
impl Unpin for HashTable
impl UnwindSafe for HashTable
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