struct Bucket {
x: u16,
free_space: u16,
next: BucketIndex,
refcount: u16,
item_count: u16,
shelf: u16,
generation: Wrapping<u8>,
}
Fields§
§x: u16
§free_space: u16
§next: BucketIndex
§refcount: u16
Buckets are cleared when their reference count goes back to zero.
item_count: u16
Similar to refcount except that the counter is not decremented when an item is deallocated. We only use this so that allocation ids are unique within a bucket.
shelf: u16
§generation: Wrapping<u8>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Bucket
impl<'de> Deserialize<'de> for Bucket
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
Auto Trait Implementations§
impl Freeze for Bucket
impl RefUnwindSafe for Bucket
impl Send for Bucket
impl Sync for Bucket
impl Unpin for Bucket
impl UnwindSafe for Bucket
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