[−][src]Struct refpool::fakepool::Pool
A fake Pool
which is always empty.
Note that, unlike its non-fake counterpart, this pool will always report its
current and maximum sizes as zero, regardless of the value passed into the
constructor, and it will always report itself as being full, to be consistent
with the reported sizes. You should therefore avoid assuming that the size
passed into Pool::new(size)
will have any bearing on the actual size of the
pool if you're writing code that might be using a fake pool.
Implementations
impl<A> Pool<A>
[src]
pub fn new(_size: usize) -> Self
[src]
pub fn get_max_size(&self) -> usize
[src]
pub fn get_pool_size(&self) -> usize
[src]
pub fn is_full(&self) -> bool
[src]
pub fn fill(&self)
[src]
pub fn cast<B>(&self) -> Pool<B>
[src]
Trait Implementations
impl<A> Clone for Pool<A>
[src]
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<A> Debug for Pool<A>
[src]
Auto Trait Implementations
impl<A> RefUnwindSafe for Pool<A> where
A: RefUnwindSafe,
A: RefUnwindSafe,
impl<A> Send for Pool<A> where
A: Send,
A: Send,
impl<A> Sync for Pool<A> where
A: Sync,
A: Sync,
impl<A> Unpin for Pool<A> where
A: Unpin,
A: Unpin,
impl<A> UnwindSafe for Pool<A> where
A: UnwindSafe,
A: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,