pub struct FastaConfig {
pub batch_records: usize,
pub buffer_size: usize,
pub expected_seq_len: usize,
}Expand description
Configuration for FASTA readers.
Fields§
§batch_records: usizeMaximum number of records returned per batch.
Values below 1 are raised to 1. Larger batches reduce caller overhead but keep more sequence bytes resident until the next batch.
buffer_size: usizeInput buffer size used by streaming readers.
Values below 1024 are raised to 1024. Larger buffers can reduce I/O calls for compressed or high-latency streams; smaller buffers may improve cache behavior on simple in-memory inputs.
expected_seq_len: usizeExpected sequence length used as a preallocation hint.
This is only a hint for reusable scratch buffers. It does not reject longer records.
Implementations§
Trait Implementations§
Source§impl Clone for FastaConfig
impl Clone for FastaConfig
Source§fn clone(&self) -> FastaConfig
fn clone(&self) -> FastaConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FastaConfig
impl Debug for FastaConfig
Auto Trait Implementations§
impl Freeze for FastaConfig
impl RefUnwindSafe for FastaConfig
impl Send for FastaConfig
impl Sync for FastaConfig
impl Unpin for FastaConfig
impl UnsafeUnpin for FastaConfig
impl UnwindSafe for FastaConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more