pub struct ExpressionTrackedObjectsPool { /* private fields */ }Expand description
A pool of ExpressionTrackedObjects collections (the nested Pool type of the
reference implementation).
Implementations§
Source§impl ExpressionTrackedObjectsPool
impl ExpressionTrackedObjectsPool
Sourcepub fn get(&mut self) -> ExpressionTrackedObjects
pub fn get(&mut self) -> ExpressionTrackedObjects
Takes a collection out of the pool, or creates one. A pooled collection is handed out as it was returned (it is not cleared).
Sourcepub fn return_(&mut self, obj: ExpressionTrackedObjects)
pub fn return_(&mut self, obj: ExpressionTrackedObjects)
Puts a collection back. The pool keeps only the most recently returned collection.
Trait Implementations§
Source§impl Debug for ExpressionTrackedObjectsPool
impl Debug for ExpressionTrackedObjectsPool
Auto Trait Implementations§
impl Freeze for ExpressionTrackedObjectsPool
impl RefUnwindSafe for ExpressionTrackedObjectsPool
impl Send for ExpressionTrackedObjectsPool
impl Sync for ExpressionTrackedObjectsPool
impl Unpin for ExpressionTrackedObjectsPool
impl UnsafeUnpin for ExpressionTrackedObjectsPool
impl UnwindSafe for ExpressionTrackedObjectsPool
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