Trait seq_io::BufStrategy [] [src]

pub trait BufStrategy {
    fn grow_to(&mut self, current_size: usize) -> Option<usize>;
}

Strategy that decides how a buffer should grow

Returns the number of additional bytes given the current size. Returning None instead will indicate that the buffer has grown too big.

Required Methods

Implementors