[−][src]Struct rust_htslib::faidx::Reader
A Fasta reader.
Implementations
impl Reader[src]
pub fn from_path<P: AsRef<Path>>(path: P) -> Result<Self, Error>[src]
pub fn from_url(url: &Url) -> Result<Self, Error>[src]
pub fn fetch_seq<N: AsRef<str>>(
&self,
name: N,
begin: usize,
end: usize
) -> Result<&[u8]>[src]
&self,
name: N,
begin: usize,
end: usize
) -> Result<&[u8]>
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 thanbegin, the behavior is undefined).
pub fn fetch_seq_string<N: AsRef<str>>(
&self,
name: N,
begin: usize,
end: usize
) -> Result<String>[src]
&self,
name: N,
begin: usize,
end: usize
) -> Result<String>
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 thanbegin, the behavior is undefined).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Reader[src]
impl !Send for Reader[src]
impl !Sync for Reader[src]
impl Unpin for Reader[src]
impl UnwindSafe for Reader[src]
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,
pub 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, 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.
pub 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>,