[][src]Struct refpool::fakepool::Pool

pub struct Pool<A>(_);

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]

impl<A> Debug for Pool<A>[src]

Auto Trait Implementations

impl<A> RefUnwindSafe for Pool<A> where
    A: RefUnwindSafe

impl<A> Send for Pool<A> where
    A: Send

impl<A> Sync for Pool<A> where
    A: Sync

impl<A> Unpin for Pool<A> where
    A: Unpin

impl<A> UnwindSafe for Pool<A> where
    A: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.