pub struct FastQSpecs {
pub header_specs: StringSpecs,
pub sequence_specs: NucleotidesSpecs,
pub same_lengths: bool,
}Available on crate feature
fuzzing only.Expand description
Specifications for generating an arbitrary FastQ record.
Fields§
§header_specs: StringSpecsThe specifications for generating the header.
sequence_specs: NucleotidesSpecsThe specifications for generating the sequence.
same_lengths: boolWhether to enforce that the sequence and the quality scores are the same length.
Implementations§
Source§impl FastQSpecs
impl FastQSpecs
Sourcepub fn parsable_fastq() -> Self
pub fn parsable_fastq() -> Self
A constructor for FastQSpecs that ensures the generated FastQ
can be parsed by FastQReader.
This includes ensuring that the header only contains graphic ASCII or spaces, that the sequence only contains graphic ASCII, and that the sequence and quality scores are the same length.
Trait Implementations§
Source§impl<'a> ArbitrarySpecs<'a> for FastQSpecs
impl<'a> ArbitrarySpecs<'a> for FastQSpecs
Source§fn make_arbitrary(&self, u: &mut Unstructured<'a>) -> Result<Self::Output>
fn make_arbitrary(&self, u: &mut Unstructured<'a>) -> Result<Self::Output>
Generates arbitrary data conforming to the given specifications. Read more
Source§fn make_arbitrary_iter<'b>(
&self,
u: &'b mut Unstructured<'a>,
) -> MakeArbitraryIter<'a, 'b, '_, Self> ⓘ
fn make_arbitrary_iter<'b>( &self, u: &'b mut Unstructured<'a>, ) -> MakeArbitraryIter<'a, 'b, '_, Self> ⓘ
Generates an iterator of arbitrary data, each item conforming to the
given specifications.
Source§impl Clone for FastQSpecs
impl Clone for FastQSpecs
Source§fn clone(&self) -> FastQSpecs
fn clone(&self) -> FastQSpecs
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 FastQSpecs
impl Debug for FastQSpecs
Source§impl Default for FastQSpecs
impl Default for FastQSpecs
Source§fn default() -> FastQSpecs
fn default() -> FastQSpecs
Returns the “default value” for a type. Read more
impl Eq for FastQSpecs
Source§impl Hash for FastQSpecs
impl Hash for FastQSpecs
Source§impl PartialEq for FastQSpecs
impl PartialEq for FastQSpecs
impl StructuralPartialEq for FastQSpecs
Auto Trait Implementations§
impl Freeze for FastQSpecs
impl RefUnwindSafe for FastQSpecs
impl Send for FastQSpecs
impl Sync for FastQSpecs
impl Unpin for FastQSpecs
impl UnsafeUnpin for FastQSpecs
impl UnwindSafe for FastQSpecs
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