pub struct FixedPool<T, const N: usize, const WORDS: usize> {
free: SpinLocked<BitAlloc<WORDS>>,
blocks: [UnsafeCell<MaybeUninit<T>>; N],
}Fields§
§free: SpinLocked<BitAlloc<WORDS>>§blocks: [UnsafeCell<MaybeUninit<T>>; N]Implementations§
Auto Trait Implementations§
impl<T, const N: usize, const WORDS: usize> !Freeze for FixedPool<T, N, WORDS>
impl<T, const N: usize, const WORDS: usize> !RefUnwindSafe for FixedPool<T, N, WORDS>
impl<T, const N: usize, const WORDS: usize> Send for FixedPool<T, N, WORDS>where
T: Send,
impl<T, const N: usize, const WORDS: usize> !Sync for FixedPool<T, N, WORDS>
impl<T, const N: usize, const WORDS: usize> Unpin for FixedPool<T, N, WORDS>where
T: Unpin,
impl<T, const N: usize, const WORDS: usize> UnsafeUnpin for FixedPool<T, N, WORDS>where
T: UnsafeUnpin,
impl<T, const N: usize, const WORDS: usize> UnwindSafe for FixedPool<T, N, WORDS>where
T: 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