Struct easy_pool::PoolSegQueue
source · [−]pub struct PoolSegQueue<T> { /* private fields */ }Implementations
sourceimpl<T> PoolSegQueue<T> where
T: Default + Clear,
impl<T> PoolSegQueue<T> where
T: Default + Clear,
pub fn new(max_size: usize) -> Self
pub fn create(self: &Arc<Self>) -> PoolObjectContainer<T>
pub fn create_with<F: FnOnce() -> T>(
self: &Arc<Self>,
f: F
) -> PoolObjectContainer<T>
pub fn len(&self) -> usize
Trait Implementations
sourceimpl<T: Debug> Debug for PoolSegQueue<T>
impl<T: Debug> Debug for PoolSegQueue<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for PoolSegQueue<T> where
T: RefUnwindSafe,
impl<T> Send for PoolSegQueue<T> where
T: Send,
impl<T> Sync for PoolSegQueue<T> where
T: Send,
impl<T> Unpin for PoolSegQueue<T> where
T: Unpin,
impl<T> !UnwindSafe for PoolSegQueue<T>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more