pub struct UnusedId<'pool> { /* private fields */ }Expand description
Implementations§
Source§impl<'pool> UnusedId<'pool>
impl<'pool> UnusedId<'pool>
Sourcepub fn as_usize(&self) -> usize
pub fn as_usize(&self) -> usize
Get the unused id as an usize.
Be aware that the id has not yet been acquired in the pool. The
acquire method must be called to prevent others from taking the id.
Auto Trait Implementations§
impl<'pool> Freeze for UnusedId<'pool>
impl<'pool> RefUnwindSafe for UnusedId<'pool>
impl<'pool> Send for UnusedId<'pool>
impl<'pool> Sync for UnusedId<'pool>
impl<'pool> Unpin for UnusedId<'pool>
impl<'pool> !UnwindSafe for UnusedId<'pool>
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> PinInit<T> for T
impl<T> PinInit<T> for T
Source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot. Read more