[][src]Struct bufferpool::BufferPool

pub struct BufferPool<V: Default + Clone> { /* fields omitted */ }

Methods

impl<V: Default + Clone> BufferPool<V>[src]

pub fn new() -> BufferPool<V>[src]

pub fn builder() -> BufferPoolBuilder<V>[src]

pub fn clear(&mut self)[src]

pub fn capacity(&self) -> usize[src]

pub fn change_buffer_size(&mut self, new_buffer_size: usize)[src]

pub fn try_change_buffer_size(
    &mut self,
    new_buffer_size: usize
) -> Result<(), ()>
[src]

pub fn len(&self) -> usize[src]

pub fn reserve(&mut self, additional: usize)[src]

pub fn try_reserve(&mut self, additional: usize) -> Result<(), ()>[src]

pub fn is_borrowed(&self) -> bool[src]

pub fn resize(&mut self, new_len: usize)[src]

pub fn try_resize(&mut self, new_len: usize) -> Result<(), ()>[src]

pub fn get_cleared_space<'a, 'b>(
    &'a mut self
) -> Result<BufferPoolReference<'b, V>, ()>
[src]

pub fn get_space<'a, 'b>(&'a mut self) -> Result<BufferPoolReference<'b, V>, ()>[src]

Auto Trait Implementations

impl<V> !Send for BufferPool<V>

impl<V> !Sync for BufferPool<V>

impl<V> Unpin for BufferPool<V> where
    V: Unpin

impl<V> !UnwindSafe for BufferPool<V>

impl<V> !RefUnwindSafe for BufferPool<V>

Blanket Implementations

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

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

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

type Error = !

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.

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

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

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