fn alloc_granularity_cap(factor: usize) -> usize {
    let mut deq = VecDeque::<u8>::with_capacity(1);
    // The capacity allocated is the allocation granularity of the OS (e.g. 1
    // memory page on OSX/Linux):
    let cap = deq.capacity();
    let new_cap = factor * cap + 1;
    deq.resize(new_cap, 0);
    deq.capacity()
}
/// Returns the `capacity` of a VecDeque<u8> that uses
/// `factor` times allocation granularity memory.
Returns the `capacity` of a VecDeque that uses
`factor` times allocation granularity memory.
Returns the ` capacity ` of a VecDeque that uses ` factor ` times allocation granularity memory .
fn alloc_granularity_cap(factor: usize) -> usize {
    let mut deq = VecDeque::<u8>::with_capacity(1);
    // The capacity allocated is the allocation granularity of the OS (e.g. 1
    // memory page on OSX/Linux):
    let cap = deq.capacity();
    let new_cap = factor * cap + 1;
    deq.resize(new_cap, 0);
    deq.capacity()
}
fn alloc_granularity_cap ( factor : usize ) -> usize { let mut deq = VecDeque :: < u8 > :: with_capacity ( 1 ) ; // The capacity allocated is the allocation granularity of the OS (e.g. 1 // memory page on OSX/Linux): let cap = deq . capacity ( ) ; let new_cap = factor * cap + 1 ; deq . resize ( new_cap , 0 ) ; deq . capacity ( ) }
Returns the `capacity` of a VecDeque<u8> that uses
`factor` times allocation granularity memory.
Returns the ` capacity ` of a VecDeque<u8 > that uses ` factor ` times allocation granularity memory .
factor
usize
factor
usize