[][src]Trait byte_pool::Poolable

pub trait Poolable {
    fn capacity(&self) -> usize;
fn alloc(size: usize) -> Self; }

The trait required to be able to use a type in BytePool.

Required methods

fn capacity(&self) -> usize

fn alloc(size: usize) -> Self

Loading content...

Implementations on Foreign Types

impl<T: Default + Clone> Poolable for Vec<T>[src]

impl<K, V, S> Poolable for HashMap<K, V, S> where
    K: Eq + Hash,
    S: BuildHasher + Default
[src]

Loading content...

Implementors

Loading content...