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

pub struct ReaderBuilder<P: BufPolicy = StdPolicy, S: PositionStore = LineStore> { /* fields omitted */ }

Allows building a FastxReader or FastxSeekReader with various configuration options.

Implementations

impl ReaderBuilder[src]

pub fn new() -> Self[src]

Creates a new ReaderBuilder

impl<P, S> ReaderBuilder<P, S> where
    P: BufPolicy,
    S: PositionStore
[src]

pub fn from_reader<'s, R>(
    self,
    reader: R
) -> Result<Option<Box<dyn FastxReader<R, P, S> + 's>>> where
    R: Read + 's,
    P: 's,
    S: 's, 
[src]

Creates a new FastxReader with the current configuration of the builder. See reader for more information about the behaviour.

pub fn from_path<'s, Q>(
    self,
    path: Q
) -> Result<Option<Box<dyn FastxSeekReader<File, P, S> + 's>>> where
    Q: AsRef<Path> + 's,
    P: 's,
    S: 's, 
[src]

Creates a new FastxSeekReader from the given path with the current configuration of the builder.

pub fn from_seekable<'s, R>(
    self,
    reader: R
) -> Result<Option<Box<dyn FastxSeekReader<R, P, S> + 's>>> where
    R: Read + Seek + 's,
    P: 's,
    S: 's, 
[src]

Creates a new FastxSeekReader with the current configuration of the builder.

pub fn set_store<T: PositionStore>(self) -> ReaderBuilder<P, T>[src]

Creates a new reader with a given core::PositionStore as defined in the type argument of the method. The method consumes the reader and returns a new Reader instance.

pub fn set_policy<T: BufPolicy>(self, buf_policy: T) -> ReaderBuilder<T, S>[src]

Applies a BufPolicy to the current reader. The method consumes the reader and returns a new Reader instance.

pub fn set_capacity(self, cap: usize) -> Self[src]

Sets a reader capacity.

pub fn set_multiline_fastq(self, multiline: bool) -> Self[src]

Sets whether multi-line FASTQ should be recognized by the reader. If true, the final reader will be fastq::multiline::Reader in the case of FASTQ input.

Trait Implementations

impl<P: Debug + BufPolicy, S: Debug + PositionStore> Debug for ReaderBuilder<P, S>[src]

Auto Trait Implementations

impl<P, S> RefUnwindSafe for ReaderBuilder<P, S> where
    P: RefUnwindSafe,
    S: RefUnwindSafe

impl<P, S> Send for ReaderBuilder<P, S>

impl<P, S> Sync for ReaderBuilder<P, S>

impl<P, S> Unpin for ReaderBuilder<P, S> where
    P: Unpin,
    S: Unpin

impl<P, S> UnwindSafe for ReaderBuilder<P, S> where
    P: UnwindSafe,
    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> 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, 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.