enum IndexBucket {
Empty {
ptr: *mut Index,
},
Occupied {
ptr: *mut Index,
header: DiskBlockHeader,
},
}Expand description
A bucket in our index map, holding a pointer to the index.
This enum indicates whether a given bucket is occupied, and if it is, it holds the respective block header as well.
Variants§
Empty
This bucket is empty
If this is a search, this means the entry isn’t in the map, and this is where it would be
Occupied
This bucket is occupied. We can read or overwrite the index value from the pointer.
Auto Trait Implementations§
impl Freeze for IndexBucket
impl RefUnwindSafe for IndexBucket
impl !Send for IndexBucket
impl !Sync for IndexBucket
impl Unpin for IndexBucket
impl UnwindSafe for IndexBucket
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