[−][src]Struct gfa::mmap::MmapGFA
Fields
cursor: Cursor<Mmap>
line_buf: Vec<u8>
current_line_len: usize
last_buf_offset: usize
parser: 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]
Notable traits for SegmentIter<'a>
impl<'a> Iterator for SegmentIter<'a> type Item = Segment<usize, ()>;
pub fn iter_links(&mut self, from_start: bool) -> LinkIter<'_>ⓘ
[src]
pub fn iter_paths(&mut self, from_start: bool) -> PathIter<'_>ⓘ
[src]
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for MmapGFA
[src]
impl Send for MmapGFA
[src]
impl Sync for MmapGFA
[src]
impl Unpin for MmapGFA
[src]
impl UnwindSafe for MmapGFA
[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>,