[][src]Struct gfa::mmap::MmapGFA

pub struct MmapGFA {
    pub cursor: Cursor<Mmap>,
    pub line_buf: Vec<u8>,
    pub current_line_len: usize,
    pub last_buf_offset: usize,
    pub parser: GFAParser<usize, ()>,
}

Fields

cursor: Cursor<Mmap>line_buf: Vec<u8>current_line_len: usizelast_buf_offset: usizeparser: GFAParser<usize, ()>

Implementations

impl MmapGFA[src]

pub fn new(path: &str) -> Result<Self>[src]

pub fn reset_position(&mut self) -> u64[src]

pub fn set_position(&mut self, new_pos: u64) -> u64[src]

pub fn get_ref(&self) -> &[u8][src]

pub fn get_parser(&self) -> &GFAParser<usize, ()>[src]

pub fn next_line(&mut self) -> Result<&[u8]>[src]

pub fn read_line_at(&mut self, offset: usize) -> Result<&[u8]>[src]

pub fn build_index(&mut self) -> Result<LineIndices>[src]

pub fn current_line(&self) -> &[u8][src]

pub fn current_line_name(&self) -> Option<&[u8]>[src]

pub fn parse_current_line(&self) -> Result<Line<usize, ()>>[src]

pub fn iter_segments(&mut self, from_start: bool) -> SegmentIter<'_>

Notable traits for SegmentIter<'a>

impl<'a> Iterator for SegmentIter<'a> type Item = Segment<usize, ()>;
[src]

pub fn iter_paths(&mut self, from_start: bool) -> PathIter<'_>

Notable traits for PathIter<'a>

impl<'a> Iterator for PathIter<'a> type Item = Path<usize, ()>;
[src]

Trait Implementations

impl Debug for MmapGFA[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

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

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

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.