Struct seq_io::fastq::RefRecord
[−]
[src]
pub struct RefRecord<'a> { /* fields omitted */ }
A FASTQ record that borrows data from a buffer
Methods
impl<'a> RefRecord<'a>
[src]
fn to_owned_record(&self) -> OwnedRecord
[src]
fn write_unchanged<W: Write>(&self, writer: &mut W) -> Result<()>
[src]
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]
impl<'a> Clone for RefRecord<'a>
[src]
fn clone(&self) -> RefRecord<'a>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'a> Record for RefRecord<'a>
[src]
fn head(&self) -> &[u8]
[src]
Return the header line of the record as byte slice
fn seq(&self) -> &[u8]
[src]
Return the FASTQ sequence as byte slice
fn qual(&self) -> &[u8]
[src]
Return the FASTQ qualities as byte slice
fn id_bytes(&self) -> &[u8]
[src]
fn id(&self) -> Result<&str, Utf8Error>
[src]
Return the ID of the record (everything before an optional space) as string slice
fn desc_bytes(&self) -> Option<&[u8]>
[src]
fn desc(&self) -> Option<Result<&str, Utf8Error>>
[src]
Return the description of the record as string slice, if present. Otherwise, None
is returned.
fn id_desc_bytes(&self) -> (&[u8], Option<&[u8]>)
[src]
Return both the ID and the description of the record (if present) This should be faster than calling id()
and desc()
separately. Read more
fn id_desc(&self) -> Result<(&str, Option<&str>), Utf8Error>
[src]
Return both the ID and the description of the record (if present) This should be faster than calling id()
and desc()
separately. Read more
fn write<W: Write>(&self, writer: &mut W) -> Result<()>
[src]
Writes a record to the given io::Write
instance