[][src]Struct seq_io::fastx::dynamic::RefRecord

pub struct RefRecord<'a, S = LineStore> where
    S: PositionStore
{ /* fields omitted */ }

A FASTX record that borrows data from a buffer It implements the traits BaseRecord and Record.

Implementations

impl<'a, S> RefRecord<'a, S> where
    S: PositionStore
[src]

pub fn seq_lines(&self) -> impl Iterator<Item = &'a [u8]> + DoubleEndedIterator[src]

Returns an iterator over all sequence lines in the data. The exact type of the iterator depends on the generic parameter S.

pub fn opt_qual_lines(
    &self
) -> Option<impl Iterator<Item = &'a [u8]> + DoubleEndedIterator>
[src]

Returns an iterator over all quality lines in the data (if present). The exact type of the iterator depends on the generic parameter S.

pub fn check_lengths_strict(&self) -> Result<&Self, Error>[src]

Checks if the lengths of the sequence and quality lines are equal. If not, returns an error of ErrorKind::UnequalLengths.

In contrast to RefRecord::check_lengths, this method always removes line terminators before comparing the lengths. Therefore, it will always return the correct result, even if there is a mix of CR and CRLF line ends.

pub fn to_owned_record(&self) -> OwnedRecord[src]

Returns a new OwnedRecord with the same data.

pub fn clone_into_owned(&self, rec: &mut OwnedRecord)[src]

Copies the data of the record into an OwnedRecord instance.

pub fn write_unchanged<W: Write>(&self, writer: W) -> Result<()>[src]

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

Trait Implementations

impl<'a, S> BaseRecord for RefRecord<'a, S> where
    S: PositionStore
[src]

impl<'a, S: Clone> Clone for RefRecord<'a, S> where
    S: PositionStore
[src]

impl<'a, S: Debug> Debug for RefRecord<'a, S> where
    S: PositionStore
[src]

impl<'a, S> From<RefRecord<'a, S>> for RefRecord<'a, S> where
    S: PositionStore
[src]

impl<'a, S> From<RefRecord<'a, S>> for RefRecord<'a, S> where
    S: PositionStore
[src]

impl<'a, S> From<RefRecord<'a, S>> for RefRecord<'a, S> where
    S: PositionStore
[src]

impl<'a, S> From<RefRecord<'a, S>> for RefRecord<'a, S> where
    S: PositionStore
[src]

impl<'a, S> Record for RefRecord<'a, S> where
    S: PositionStore
[src]

Auto Trait Implementations

impl<'a, S> RefUnwindSafe for RefRecord<'a, S> where
    S: RefUnwindSafe

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

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

impl<'a, S> Unpin for RefRecord<'a, S>

impl<'a, S> UnwindSafe for RefRecord<'a, S> where
    S: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.