pub struct Bucket<T> { /* private fields */ }
Expand description
A reference to a hash table bucket containing a T
.
This is usually just a pointer to the element itself. However if the element
is a ZST, then we instead track the index of the element in the table so
that erase
works properly.
Implementations§
Source§impl<T> Bucket<T>
impl<T> Bucket<T>
pub fn as_ptr(&self) -> *mut T
pub unsafe fn drop(&self)
pub unsafe fn read(&self) -> T
pub unsafe fn write(&self, val: T)
pub unsafe fn as_ref<'a>(&self) -> &'a T
pub unsafe fn as_mut<'a>(&self) -> &'a mut T
pub unsafe fn copy_from_nonoverlapping(&self, other: &Self)
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Bucket<T>
impl<T> RefUnwindSafe for Bucket<T>where
T: RefUnwindSafe,
impl<T> !Sync for Bucket<T>
impl<T> Unpin for Bucket<T>
impl<T> UnwindSafe for Bucket<T>where
T: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)