pub fn with_capacity(src: R, capacity: usize) -> Self {
        GreedyAccessReader {
            inner: src,
            buf: Vec::with_capacity(capacity),
            consumed: 0,
        }
    }
/// Creates a new greedy buffered reader with the given byte source and
/// the specified buffer capacity.
///
/// The buffer will be able to read approximately `capacity` bytes without
/// reallocating.
Creates a new greedy buffered reader with the given byte source and
the specified buffer capacity.

The buffer will be able to read approximately `capacity` bytes without
reallocating.
Creates a new greedy buffered reader with the given byte source and the specified buffer capacity . The buffer will be able to read approximately ` capacity ` bytes without reallocating .
pub fn with_capacity(src: R, capacity: usize) -> Self {
        GreedyAccessReader {
            inner: src,
            buf: Vec::with_capacity(capacity),
            consumed: 0,
        }
    }
pub fn with_capacity ( src : R , capacity : usize ) -> Self { GreedyAccessReader { inner : src , buf : Vec :: with_capacity ( capacity ) , consumed : 0 , } }
Creates a new greedy buffered reader with the given byte source and
the specified buffer capacity.
Creates a new greedy buffered reader with the given byte source and the specified buffer capacity .
src
R
capacity
usize
src
R
capacity
usize