Method lrs::ringbuf::DynRingBuf::with_capacity

Creates a new ring buffer and reserves a certain amount of space for it.

Syntax

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,
}

Arguments

NameDescription
cap