pub struct Record { /* private fields */ }
Expand description

An instance of a Fastx Record. This is a two attribute object containing the sequence ID and the Sequence.

Implementations

Usage

Creates a new instance of a [Record]

let record = fxread::Record::new();
assert!(record.empty());

Checks if [Record] is empty

Usage

Sets the ID of the record

let mut record = fxread::Record::new();
record.set_id("some_id".to_string());
assert_eq!(record.id(), "some_id");
Usage

Sets the Sequence of the record

let mut record = fxread::Record::new();
record.set_seq("ACGT".to_string());
assert_eq!(record.seq(), "ACGT");

Returns a reference of the sequence ID

Returns a reference of the sequence

Trait Implementations

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.