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

pub struct RecordSet<S = LineStore> where
    S: PositionStore
{ /* fields omitted */ }

Set of sequence records that owns it's buffer and knows the positions of each record.

Example:

use seq_io::prelude::*;
use seq_io::fastx::{Reader, RecordSet};

let seq_path = "sequences.fastq";
let mut reader = Reader::from_path(seq_path).unwrap();

while let Some(record) = reader.next() {
    let record = record.unwrap();
    println!("{}", record.id().unwrap());
}

Implementations

impl<S> RecordSet<S> where
    S: PositionStore
[src]

pub fn len(&self) -> usize[src]

Returns the number of records in the record set.

pub fn is_empty(&self) -> bool[src]

Returns the number of records in the record set.

Trait Implementations

impl<S: Clone> Clone for RecordSet<S> where
    S: PositionStore
[src]

impl<S: Debug> Debug for RecordSet<S> where
    S: PositionStore
[src]

impl<S: Default> Default for RecordSet<S> where
    S: PositionStore
[src]

impl<'de, S> Deserialize<'de> for RecordSet<S> where
    S: PositionStore,
    S: Deserialize<'de>, 
[src]

impl<'a, S> IntoIterator for &'a RecordSet<S> where
    S: PositionStore
[src]

type Item = RefRecord<'a, S>

The type of the elements being iterated over.

type IntoIter = RecordSetIter<'a, S>

Which kind of iterator are we turning this into?

impl<S> Serialize for RecordSet<S> where
    S: PositionStore,
    S: Serialize
[src]

Auto Trait Implementations

impl<S> RefUnwindSafe for RecordSet<S> where
    S: RefUnwindSafe

impl<S> Send for RecordSet<S>

impl<S> Sync for RecordSet<S>

impl<S> Unpin for RecordSet<S> where
    S: Unpin

impl<S> UnwindSafe for RecordSet<S> where
    S: UnwindSafe

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[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.