pub struct Pool<T: Clone> { /* private fields */ }Implementations§
Source§impl<T: Clone> Pool<T>
impl<T: Clone> Pool<T>
pub fn from_vec(inner: Vec<T>) -> Pool<T>
pub fn get(&self, index: BaseType) -> Option<&T>
pub fn push(&mut self, value: T)
pub fn len(&self) -> BaseType
pub fn is_empty(&self) -> bool
pub fn clear(&mut self)
pub fn resize(&mut self, size: u32, value: T)
pub fn iter(&self) -> Iter<'_, T>
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Pool<T>
impl<T> RefUnwindSafe for Pool<T>where
T: RefUnwindSafe,
impl<T> Send for Pool<T>where
T: Send,
impl<T> Sync for Pool<T>where
T: Sync,
impl<T> Unpin for Pool<T>where
T: Unpin,
impl<T> UnsafeUnpin for Pool<T>
impl<T> UnwindSafe for Pool<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