Trait seq_io::policy::BufPolicy

source ·
pub trait BufPolicy {
    // Required method
    fn grow_to(&mut self, current_size: usize) -> Option<usize>;
}
Expand description

Policy that configures how the internal buffer grows upon encountering large sequences.

Takes the current buffer size in bytes and returns the new size the the buffer should grow to. Returning None instead will indicate that the buffer has grown too big. In this case, the FASTA and FASTQ readers will return Error::BufferLimit.

Required Methods§

source

fn grow_to(&mut self, current_size: usize) -> Option<usize>

Implementors§