[][src]Struct gfa::gfa::GFA

pub struct GFA<N, T: OptFields> {
    pub header: Header<T>,
    pub segments: Vec<Segment<N, T>>,
    pub links: Vec<Link<N, T>>,
    pub containments: Vec<Containment<N, T>>,
    pub paths: Vec<Path<N, T>>,
}

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 to store each separate GFA line type.

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]

pub fn new() -> Self[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]

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]

impl<N, T> Send for GFA<N, T> where
    N: Send,
    T: Send
[src]

impl<N, T> Sync for GFA<N, T> where
    N: Sync,
    T: Sync
[src]

impl<N, T> Unpin for GFA<N, T> where
    N: Unpin,
    T: Unpin
[src]

impl<N, T> UnwindSafe for GFA<N, T> where
    N: UnwindSafe,
    T: UnwindSafe
[src]

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.