pub struct MassMapMeta {
pub entry_count: u64,
pub bucket_count: u64,
pub occupied_bucket_count: u64,
pub occupied_bucket_range: Range<u64>,
pub hash_config: MassMapHashConfig,
pub key_type: String,
pub value_type: String,
}Expand description
Metadata serialized at the tail of every massmap file.
Fields§
§entry_count: u64Number of entries.
bucket_count: u64Number of buckets.
occupied_bucket_count: u64Number of non-empty buckets.
occupied_bucket_range: Range<u64>Range of non-empty bucket indices.
hash_config: MassMapHashConfigHash configuration used to derive the BuildHasher
when reopening the map.
key_type: StringKey type name.
value_type: StringValue type name.
Trait Implementations§
Source§impl Clone for MassMapMeta
impl Clone for MassMapMeta
Source§fn clone(&self) -> MassMapMeta
fn clone(&self) -> MassMapMeta
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 MassMapMeta
impl Debug for MassMapMeta
Source§impl Default for MassMapMeta
impl Default for MassMapMeta
Source§fn default() -> MassMapMeta
fn default() -> MassMapMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MassMapMeta
impl<'de> Deserialize<'de> for MassMapMeta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MassMapMeta
impl PartialEq for MassMapMeta
Source§impl Serialize for MassMapMeta
impl Serialize for MassMapMeta
impl Eq for MassMapMeta
impl StructuralPartialEq for MassMapMeta
Auto Trait Implementations§
impl Freeze for MassMapMeta
impl RefUnwindSafe for MassMapMeta
impl Send for MassMapMeta
impl Sync for MassMapMeta
impl Unpin for MassMapMeta
impl UnwindSafe for MassMapMeta
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