Creates a new ring buffer and reserves a certain amount of space for it.
impl<T, H> DynRingBuf<T, H>
where H: Allocator,
{
fn with_capacity(cap: usize) -> Result<DynRingBuf<T, H>, Errno>
where <H as Allocator>::Pool: Default,
}| Name | Description |
|---|---|
| cap | |