[][src]Struct bam::bam_reader::RegionViewer

pub struct RegionViewer<'a, R: Read + Seek> { /* fields omitted */ }

Iterator over records in a specific region. Implements RecordReader trait.

If possible, create a single record using Record::new and then use read_into instead of iterating, as it saves time on allocation.

Trait Implementations

impl<'a, R: Read + Seek> RecordReader for RegionViewer<'a, R>[src]

impl<'a, R: Seek + Read> Iterator for RegionViewer<'a, R>[src]

Iterator over records.

Errors

If the record was corrupted, the function returns Corrupted error. If the record was truncated or the reading failed for a different reason, the function returns Truncated error.

type Item = Result<Record, Error>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, R> !Send for RegionViewer<'a, R>

impl<'a, R> !Sync for RegionViewer<'a, R>

impl<'a, R> Unpin for RegionViewer<'a, R>

impl<'a, R> !UnwindSafe for RegionViewer<'a, R>

impl<'a, R> !RefUnwindSafe for RegionViewer<'a, R>

Blanket Implementations

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

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

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.

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

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

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