pub struct BatchStreamObjectPoolItems<T> { /* private fields */ }Expand description
Creates and clears the arrays of a BatchStreamObjectPool.
Trait Implementations§
Source§impl<T> IBatchStreamPoolItems<Box<[Option<T>]>> for BatchStreamObjectPoolItems<T>
impl<T> IBatchStreamPoolItems<Box<[Option<T>]>> for BatchStreamObjectPoolItems<T>
Source§fn create_item(&self) -> Box<[Option<T>]>
fn create_item(&self) -> Box<[Option<T>]>
Creates a new item; called when the pool has none to hand out.
Source§fn clear_item(&self, item: &mut Box<[Option<T>]>)
fn clear_item(&self, item: &mut Box<[Option<T>]>)
Clears an item that is being returned to the pool.
Source§fn destroy_item(&self, _item: T)
fn destroy_item(&self, _item: T)
Destroys an item the pool does not keep.
Auto Trait Implementations§
impl<T> Freeze for BatchStreamObjectPoolItems<T>
impl<T> RefUnwindSafe for BatchStreamObjectPoolItems<T>
impl<T> Send for BatchStreamObjectPoolItems<T>
impl<T> Sync for BatchStreamObjectPoolItems<T>
impl<T> Unpin for BatchStreamObjectPoolItems<T>
impl<T> UnsafeUnpin for BatchStreamObjectPoolItems<T>
impl<T> UnwindSafe for BatchStreamObjectPoolItems<T>
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more