pub struct Fasta { /* private fields */ }
Expand description
Struct to generate random fastq record
Implementations§
source§impl Fasta
impl Fasta
sourcepub fn builder(
) -> FastaBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
pub fn builder( ) -> FastaBuilder<((), (), (), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building Fasta
.
On the builder, call .id(...)
(optional), .id_len(...)
(optional), .id_prefix(...)
(optional), .id_suffix(...)
(optional), .id_weights(...)
(optional), .comment(...)
(optional), .comment_len(...)
(optional), .comment_prefix(...)
(optional), .comment_suffix(...)
(optional), .comment_weights(...)
(optional), .sequence(...)
(optional), .sequence_len(...)
(optional), .sequence_weights(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of Fasta
.
Trait Implementations§
source§impl Format for Fasta
impl Format for Fasta
source§fn header(&self, _output: &mut dyn Write, _rng: &mut StdRng) -> Result<()>
fn header(&self, _output: &mut dyn Write, _rng: &mut StdRng) -> Result<()>
Write header of format in output
source§fn record(&self, output: &mut dyn Write, rng: &mut StdRng) -> Result<()>
fn record(&self, output: &mut dyn Write, rng: &mut StdRng) -> Result<()>
Write a record in output
Auto Trait Implementations§
impl Freeze for Fasta
impl RefUnwindSafe for Fasta
impl Send for Fasta
impl Sync for Fasta
impl Unpin for Fasta
impl UnwindSafe for Fasta
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