[−][src]Struct bufferpool::BufferPool
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]
&mut self,
new_buffer_size: usize
) -> Result<(), ()>
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]
&'a mut self
) -> Result<BufferPoolReference<'b, V>, ()>
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,
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]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,