pub struct Slab<T, const N: usize> { /* private fields */ }Implementations§
Source§impl<T, const N: usize> Slab<T, N>
impl<T, const N: usize> Slab<T, N>
pub fn new() -> Self
pub fn split(self) -> (SlabSender<T, N>, SlabReceiver<T, N>)
Trait Implementations§
impl<T: Send, const N: usize> Send for Slab<T, N>
impl<T: Send, const N: usize> Sync for Slab<T, N>
Auto Trait Implementations§
impl<T, const N: usize> !Freeze for Slab<T, N>
impl<T, const N: usize> !RefUnwindSafe for Slab<T, N>
impl<T, const N: usize> Unpin for Slab<T, N>where
T: Unpin,
impl<T, const N: usize> UnwindSafe for Slab<T, N>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