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

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

A FASTA 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 owned_seq(&self) -> Vec<u8>[src]

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())

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> 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.