pub struct BucketImpl<S: Slot, const N: usize> { /* private fields */ }Implementations§
Source§impl<S: Slot, const NUM_SEGMENTS: usize> BucketImpl<S, NUM_SEGMENTS>
impl<S: Slot, const NUM_SEGMENTS: usize> BucketImpl<S, NUM_SEGMENTS>
pub const fn new() -> Self
pub fn ensure_init(&mut self)
pub fn claim_first_available_slot(&mut self) -> Option<*const u8>
pub fn get_slot(&self, slot_idx: usize) -> *const u8
pub fn set_slot(&mut self, slot_idx: usize)
pub fn unset_slot(&mut self, slot_idx: usize)
pub fn slot_idx_for_ptr(&self, ptr: *const u8) -> Option<usize>
Trait Implementations§
Source§impl<S: Clone + Slot, const N: usize> Clone for BucketImpl<S, N>
impl<S: Clone + Slot, const N: usize> Clone for BucketImpl<S, N>
Source§fn clone(&self) -> BucketImpl<S, N>
fn clone(&self) -> BucketImpl<S, N>
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 moreimpl<S: Copy + Slot, const N: usize> Copy for BucketImpl<S, N>
Auto Trait Implementations§
impl<S, const N: usize> Freeze for BucketImpl<S, N>where
S: Freeze,
impl<S, const N: usize> RefUnwindSafe for BucketImpl<S, N>where
S: RefUnwindSafe,
impl<S, const N: usize> Send for BucketImpl<S, N>where
S: Send,
impl<S, const N: usize> Sync for BucketImpl<S, N>where
S: Sync,
impl<S, const N: usize> Unpin for BucketImpl<S, N>where
S: Unpin,
impl<S, const N: usize> UnwindSafe for BucketImpl<S, N>where
S: UnwindSafe,
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