pub struct Object<M: Manager> { /* fields omitted */ }
This is supported on crate feature managed
only.
Expand description
Wrapper around the actual pooled object which implements Deref
,
DerefMut
and Drop
traits.
Use this object just as if it was of type T
and upon leaving a scope the
Drop::drop()
will take care of returning it to the pool.
Takes this Object
from its Pool
permanently. This reduces the
size of the Pool
.
Returns the Pool
this Object
belongs to.
Since Object
s only hold a Weak
reference to the Pool
they
come from, this can fail and return None
instead.
Formats the value using the given formatter. Read more
The resulting type after dereferencing.
Mutably dereferences the value.
Executes the destructor for this type. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.