pub struct CollectorHandle { /* private fields */ }Implementations§
Source§impl CollectorHandle
impl CollectorHandle
pub fn new() -> Self
Sourcepub unsafe fn pin(&self) -> Guard<'_>
pub unsafe fn pin(&self) -> Guard<'_>
§Safety
The returned Guard must not outlive any collection that uses this collector. It would
result in the Guard’s drop implementation attempting to free slots from the already freed
collection, resulting in a Use-After-Free. You must ensure that the Guard has its
lifetime bound to the collections it protects.
Trait Implementations§
Source§impl Clone for CollectorHandle
impl Clone for CollectorHandle
Source§impl Debug for CollectorHandle
impl Debug for CollectorHandle
Source§impl Default for CollectorHandle
impl Default for CollectorHandle
Source§impl Drop for CollectorHandle
impl Drop for CollectorHandle
Source§impl PartialEq for CollectorHandle
impl PartialEq for CollectorHandle
impl Eq for CollectorHandle
impl Send for CollectorHandle
impl Sync for CollectorHandle
Auto Trait Implementations§
impl Freeze for CollectorHandle
impl RefUnwindSafe for CollectorHandle
impl Unpin for CollectorHandle
impl UnwindSafe for CollectorHandle
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