pub fn new(min_items: usize) -> Result<Self, DoubleMappedBufferError> {
        match DoubleMappedBufferImpl::new(min_items, mem::size_of::<T>(), mem::align_of::<T>()) {
            Ok(buffer) => Ok(DoubleMappedBuffer {
                buffer,
                _p: PhantomData,
            }),
            Err(e) => Err(e),
        }
    }
/// Create a buffer that can hold at least `min_items` items.
///
/// The acutal capacity of the buffer will be the smallest multiple of the
/// system page size and the item size that can hold at least `min_items`
/// items.
Create a buffer that can hold at least `min_items` items.
The acutal capacity of the buffer will be the smallest multiple of the
system page size and the item size that can hold at least `min_items`
items.
Create a buffer that can hold at least ` min_items ` items . The acutal capacity of the buffer will be the smallest multiple of the system page size and the item size that can hold at least ` min_items ` items .
pub fn new(min_items: usize) -> Result<Self, DoubleMappedBufferError> {
        match DoubleMappedBufferImpl::new(min_items, mem::size_of::<T>(), mem::align_of::<T>()) {
            Ok(buffer) => Ok(DoubleMappedBuffer {
                buffer,
                _p: PhantomData,
            }),
            Err(e) => Err(e),
        }
    }
pub fn new ( min_items : usize ) -> Result < Self , DoubleMappedBufferError > { match DoubleMappedBufferImpl :: new ( min_items , mem :: size_of :: < T > ( ) , mem :: align_of :: < T > ( ) ) { Ok ( buffer ) => Ok ( DoubleMappedBuffer { buffer , _p : PhantomData , } ) , Err ( e ) => Err ( e ) , } }
Create a buffer that can hold at least `min_items` items.
Create a buffer that can hold at least ` min_items ` items .
min_items
usize
min_items
usize