mirror of
https://github.com/servo/servo.git
synced 2025-10-08 20:49:24 +01:00
parent
f7ad19f500
commit
d6bafde971
3 changed files with 10 additions and 90 deletions
|
@ -182,7 +182,7 @@ pub struct GapThenFull<K, V, M> {
|
|||
|
||||
/// A hash that is not zero, since we use a hash of zero to represent empty
|
||||
/// buckets.
|
||||
#[derive(PartialEq, Copy, Clone, Debug)]
|
||||
#[derive(PartialEq, Copy, Clone)]
|
||||
pub struct SafeHash {
|
||||
hash: HashUint,
|
||||
}
|
||||
|
@ -816,12 +816,6 @@ impl<K, V> RawTable<K, V> {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns a raw pointer to the table's buffer.
|
||||
#[inline]
|
||||
pub fn raw_buffer(&self) -> *const u8 {
|
||||
self.hashes.ptr() as *const u8
|
||||
}
|
||||
|
||||
/// Creates a new raw table from a given capacity. All buckets are
|
||||
/// initially empty.
|
||||
pub fn new(capacity: usize) -> Result<RawTable<K, V>, FailedAllocationError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue