pub struct BufferPool { /* fields omitted */ }Expand description
Creates a new empty pool.
Upload contents to a vacant buffer.
Returns buffer index.
If no vacant buffer is available, a new one is allocated.
Clears pool. Buffers are marked as vacant and reusable.
Get occupied buffer by index.
Get any (occupied and vacant) buffer by index.
Pool size (occupied + vacant)
Number of occupied buffers
Formats the value using the given formatter. Read more
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T> Downcast<T> for T
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.