[−][src]Struct gfa::gfa::GFA
This module defines the various GFA line types, the GFA object,
and some utility functions and types.
Simple representation of a parsed GFA file, using a Vec
Fields
header: Header<T>
segments: Vec<Segment<N, T>>
links: Vec<Link<N, T>>
containments: Vec<Containment<N, T>>
paths: Vec<Path<N, T>>
Implementations
impl<N, T: OptFields> GFA<N, T>
[src]
pub fn insert_line(&mut self, line: Line<N, T>)
[src]
Insert a GFA line (wrapped in the Line enum) into an existing GFA. Simply pushes it into the corresponding Vec in the GFA, or replaces the header, so there's no deduplication or sorting taking place.
pub fn lines_into_iter(self) -> impl Iterator<Item = Line<N, T>>
[src]
Consume a GFA object to produce an iterator over all the lines contained within. The iterator first produces all segments, then links, then containments, and finally paths.
pub fn lines_iter(&self) -> impl Iterator<Item = LineRef<'_, N, T>>
[src]
Return an iterator over references to the lines in the GFA
impl<N: SegmentId, T: OptFields> GFA<N, T>
[src]
Trait Implementations
impl<N: Clone, T: Clone + OptFields> Clone for GFA<N, T>
[src]
impl<N: Debug, T: Debug + OptFields> Debug for GFA<N, T>
[src]
impl<N: Default, T: Default + OptFields> Default for GFA<N, T>
[src]
impl<N: PartialEq, T: PartialEq + OptFields> PartialEq<GFA<N, T>> for GFA<N, T>
[src]
impl<N: PartialOrd, T: PartialOrd + OptFields> PartialOrd<GFA<N, T>> for GFA<N, T>
[src]
fn partial_cmp(&self, other: &GFA<N, T>) -> Option<Ordering>
[src]
fn lt(&self, other: &GFA<N, T>) -> bool
[src]
fn le(&self, other: &GFA<N, T>) -> bool
[src]
fn gt(&self, other: &GFA<N, T>) -> bool
[src]
fn ge(&self, other: &GFA<N, T>) -> bool
[src]
impl<N, T: OptFields> StructuralPartialEq for GFA<N, T>
[src]
Auto Trait Implementations
impl<N, T> RefUnwindSafe for GFA<N, T> where
N: RefUnwindSafe,
T: RefUnwindSafe,
[src]
N: RefUnwindSafe,
T: RefUnwindSafe,
impl<N, T> Send for GFA<N, T> where
N: Send,
T: Send,
[src]
N: Send,
T: Send,
impl<N, T> Sync for GFA<N, T> where
N: Sync,
T: Sync,
[src]
N: Sync,
T: Sync,
impl<N, T> Unpin for GFA<N, T> where
N: Unpin,
T: Unpin,
[src]
N: Unpin,
T: Unpin,
impl<N, T> UnwindSafe for GFA<N, T> where
N: UnwindSafe,
T: UnwindSafe,
[src]
N: UnwindSafe,
T: UnwindSafe,
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> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
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>,