pub struct SeqWriter<W: Write> { /* private fields */ }

Implementations

Create a new SeqWriter to write GenBank files to the given stream.

Set the behaviour regarding locus name truncation.

If true (the default when creating a SeqWriter, for backwards compatibility), the locus fields (name and molecule_type) will be truncated if they are too long so that the LOCUS line is no longer than 79 characters.

By setting truncate to false, the full strings are written to the LOCUS line, resulting in fields that may not in usual positions if the name or molecule types are too long. Most parsers (including gb-io and Biopython) should however be able to process these.

Set the behaviour regarding locus name escaping.

If true (the default when creating a SeqWriter, for backwards compatibility), any whitespace in the locus will be escaped with and underscore (_).

Set to false to write the locus as-is, which could result in an invalid LOCUS line that some parsers may not be able to process.

Write the sequence to the stream.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.