pub struct Object<T> { /* private fields */ }Expand description
A wrapper around the actual pooled object which implements the traits
Deref, DerefMut and Drop. Use this object just as if it was of type
T and upon leaving scope the drop function will take care of
returning it to the pool.
Implementations
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for Object<T>
impl<T> Send for Object<T> where
    T: Send, 
impl<T> Sync for Object<T> where
    T: Send + Sync, 
impl<T> Unpin for Object<T> where
    T: Unpin, 
impl<T> !UnwindSafe for Object<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