BamReader

Struct BamReader 

Source
pub struct BamReader<'r> { /* private fields */ }
Expand description

[this reader was autogenerated via macro]

Implementations§

Source§

impl<'r> BamReader<'r>

Source

pub fn new<B>(data: B, params: Option<()>) -> Result<Self, EtError>
where B: TryInto<ReadBuffer<'r>>, EtError: From<<B as TryInto<ReadBuffer<'r>>>::Error>,

Create a new instance of the reader

§Errors

If data could not be turned into a ReadBuffer successfully or if the initial state could not be extracted, returns an EtError.

Source

pub fn next(&mut self) -> Result<Option<BamRecord<'_>>, EtError>

Return the specialized version of this record.

To get the “generic” version, please use the next_record method from the RecordReader trait.

§Errors

If a value could not be extracted, return an EtError.

Trait Implementations§

Source§

impl<'r> Debug for BamReader<'r>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'r> RecordReader for BamReader<'r>

Source§

fn next_record(&mut self) -> Result<Option<Vec<Value<'_>>>, EtError>

The next record, expressed as a Vec of Values.

Source§

fn headers(&self) -> Vec<String>

The headers for this Reader.

Source§

fn metadata(&self) -> BTreeMap<String, Value<'_>>

The metadata for this Reader.

Auto Trait Implementations§

§

impl<'r> Freeze for BamReader<'r>

§

impl<'r> !RefUnwindSafe for BamReader<'r>

§

impl<'r> !Send for BamReader<'r>

§

impl<'r> !Sync for BamReader<'r>

§

impl<'r> Unpin for BamReader<'r>

§

impl<'r> !UnwindSafe for BamReader<'r>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.