pub struct FastqConfig {
pub slab_size: usize,
pub validate: bool,
pub pairing: PairingMode,
pub pair_validation: PairValidation,
}Expand description
Configuration for FASTQ batch readers.
The default is a validated, unpaired reader with a 1 MiB slab and full pair identifier validation when pairing APIs are used.
Fields§
§slab_size: usizeTarget slab size in bytes.
Values below 1024 are raised to 1024. Larger slabs reduce carry frequency for long records but increase the reusable buffer size.
validate: boolValidate FASTQ structure while framing records.
Validation checks the leading @, leading +, and sequence/quality
length equality. Disable only for trusted inputs.
pairing: PairingModeWhether a single stream should be interpreted as unpaired or interleaved.
pair_validation: PairValidationIdentifier validation policy for paired APIs.
Implementations§
Source§impl FastqConfig
impl FastqConfig
Sourcepub fn interleaved(self) -> Self
pub fn interleaved(self) -> Self
Treat a single FASTQ stream as adjacent interleaved read pairs.
Sourcepub fn pair_validation(self, pair_validation: PairValidation) -> Self
pub fn pair_validation(self, pair_validation: PairValidation) -> Self
Set the paired-read identifier validation policy.
Trait Implementations§
Source§impl Clone for FastqConfig
impl Clone for FastqConfig
Source§fn clone(&self) -> FastqConfig
fn clone(&self) -> FastqConfig
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 FastqConfig
impl Debug for FastqConfig
Auto Trait Implementations§
impl Freeze for FastqConfig
impl RefUnwindSafe for FastqConfig
impl Send for FastqConfig
impl Sync for FastqConfig
impl Unpin for FastqConfig
impl UnsafeUnpin for FastqConfig
impl UnwindSafe for FastqConfig
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