[−][src]Struct seq_io::fastx::dynamic::ReaderBuilder
Allows building a FastxReader
or FastxSeekReader
with various configuration options.
Implementations
impl ReaderBuilder
[src]
impl<P, S> ReaderBuilder<P, S> where
P: BufPolicy,
S: PositionStore,
[src]
P: BufPolicy,
S: PositionStore,
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]
self,
reader: R
) -> Result<Option<Box<dyn FastxReader<R, P, S> + 's>>> where
R: Read + 's,
P: 's,
S: 's,
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]
self,
path: Q
) -> Result<Option<Box<dyn FastxSeekReader<File, P, S> + 's>>> where
Q: AsRef<Path> + 's,
P: 's,
S: 's,
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]
self,
reader: R
) -> Result<Option<Box<dyn FastxSeekReader<R, P, S> + 's>>> where
R: Read + Seek + 's,
P: 's,
S: 's,
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,
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,
P: Unpin,
S: Unpin,
impl<P, S> UnwindSafe for ReaderBuilder<P, S> where
P: UnwindSafe,
S: UnwindSafe,
P: UnwindSafe,
S: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
const ALIGN: usize
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,