Struct seq_io::fasta::RefRecord[][src]

pub struct RefRecord<'a> { /* fields omitted */ }

A FASTA record that borrows data from a buffer.

Methods

impl<'a> RefRecord<'a>
[src]

Important traits for SeqLines<'a>

Return an iterator over all sequence lines in the data

Returns the number of sequence lines

Returns the full sequence. If the sequence consists of a single line, then the sequence will be borrowed from the underlying buffer (equivalent to calling RefRecord::seq()). If there are multiple lines, an owned copy will be created (equivalent to RefRecord::owned_seq()).

Returns the sequence as owned Vec. Note: This function must be called in order to obtain a sequence that does not contain line endings (as returned by seq())

Creates an owned copy of the record.

Writes a record to the given io::Write instance by just writing the unmodified input, which is faster than RefRecord::write

Trait Implementations

impl<'a> Debug for RefRecord<'a>
[src]

Formats the value using the given formatter. Read more

impl<'a> Clone for RefRecord<'a>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<'a> Record for RefRecord<'a>
[src]

Return the header line of the record as byte slice

Return the FASTA sequence as byte slice. Note that this method of RefRecord returns the raw sequence, which may contain line breaks. Use seq_lines() to iterate over all lines without breaks, or use full_seq() to access the whole sequence at once.

Write the record to the given io::Write instance. The sequence will occupy one line only.

Write the record to the given io::Write instance. The sequence is wrapped to produce multi-line FASTA with a maximum width specified by wrap. Read more

Return the ID of the record (everything before an optional space) as string slice

Return the description of the record as string slice, if present. Otherwise, None is returned.

Return both the ID and the description of the record (if present) This should be faster than calling id() and desc() separately. Read more

Return both the ID and the description of the record (if present) This should be faster than calling id() and desc() separately. Read more

Auto Trait Implementations

impl<'a> Send for RefRecord<'a>

impl<'a> Sync for RefRecord<'a>