Register new snapshots
This commit is contained in:
parent
e4ead7b034
commit
065e39bb2f
17 changed files with 9 additions and 580 deletions
|
|
@ -165,29 +165,6 @@ impl<K, V> RawBucket<K, V> {
|
|||
}
|
||||
}
|
||||
|
||||
// For parameterizing over mutability.
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl<'t, K, V> Deref<RawTable<K, V>> for &'t RawTable<K, V> {
|
||||
fn deref(&self) -> &RawTable<K, V> {
|
||||
&**self
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl<'t, K, V> Deref<RawTable<K, V>> for &'t mut RawTable<K, V> {
|
||||
fn deref(&self) -> &RawTable<K,V> {
|
||||
&**self
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(stage0)]
|
||||
impl<'t, K, V> DerefMut<RawTable<K, V>> for &'t mut RawTable<K, V> {
|
||||
fn deref_mut(&mut self) -> &mut RawTable<K,V> {
|
||||
&mut **self
|
||||
}
|
||||
}
|
||||
|
||||
// Buckets hold references to the table.
|
||||
impl<K, V, M> FullBucket<K, V, M> {
|
||||
/// Borrow a reference to the table.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue