pub struct Reader { /* private fields */ }
Expand description

A Fasta reader.

Implementations

Create a new Reader from a path.

Arguments
  • path - the path to open.

Create a new Reader from an URL.

Arguments
  • url - the url to open

Fetch the sequence as a byte array.

Arguments
  • name - the name of the template sequence (e.g., “chr1”)
  • begin - the offset within the template sequence (starting with 0)
  • end - the end position to return (if smaller than begin, the behavior is undefined).

Fetches the sequence and returns it as string.

Arguments
  • name - the name of the template sequence (e.g., “chr1”)
  • begin - the offset within the template sequence (starting with 0)
  • end - the end position to return (if smaller than begin, the behavior is undefined).

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.