Struct bam::header::HeaderEntry[][src]

pub struct HeaderEntry { /* fields omitted */ }
Expand description

A single header line.

You can create a new entry using header_line, ref_sequence and so on. After that you can modify line tags using push, remove and others.

However, be careful not to delete the required tag, as well as check the required tag format.

Implementations

Creates a new @HD header entry.

Creates a new @SQ header entry.

Creates a new @RG header entry.

Creates a new @PG header entry.

Returns record two-letter name of the line (such as HD or SQ).

Returns an iterator over all tags.

Returns a tag with name if present. Takes O(n_tags).

Returns a mutable tag with name if present. Takes O(n_tags).

Pushes a tag to the end. Takes O(1).

Replaces tag value if present and returns previous value. If there is no tag with the same name, pushes the new tag to the end. Takes O(n_tags).

Removes the tag, if present, and returns its value. Takes O(n_tags).

Returns the number of tags in the line.

Write the whole entry in a line.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.