Struct Container
#[repr(C)]struct Container<T> {
el: T,
ref_count: AtomicUsize,
empty_indexes: Arc<RwLock<VecDeque<usize>>>,
current_idx: usize,
}Expand description
Structure used to encapsulate the object on the heap
Fields§
§el: T§ref_count: AtomicUsize§empty_indexes: Arc<RwLock<VecDeque<usize>>>§current_idx: usizeImplementations§
Auto Trait Implementations§
impl<T> !Freeze for Container<T>
impl<T> RefUnwindSafe for Container<T>where
T: RefUnwindSafe,
impl<T> Send for Container<T>where
T: Send,
impl<T> Sync for Container<T>where
T: Sync,
impl<T> Unpin for Container<T>where
T: Unpin,
impl<T> UnsafeUnpin for Container<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Container<T>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