Struct noodles_gtf::record::Record[][src]

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

A GTF record.

Implementations

Returns a record builder.

Examples
use noodles_gtf as gtf;
let builder = gtf::Record::builder();

Returns the reference sequence name.

This is also called the “seqname”.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert_eq!(record.reference_sequence_name(), ".");

Returns the source.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert_eq!(record.source(), ".");

Returns the feature type.

This is also simply called “feature”.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert_eq!(record.ty(), ".");

Returns the start position.

This value is 1-based.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert_eq!(record.start(), 1);

Returns the end position.

This value is 1-based.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert_eq!(record.end(), 1);

Returns the confidence score.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert!(record.score().is_none());

Returns the strand.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert!(record.strand().is_none());

Returns the frame.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert!(record.frame().is_none());

Returns the attributes.

Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert!(record.attributes().is_empty());

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

Returns the “default value” for a type. Read more

Formats the value using the given formatter. Read more

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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)

recently added

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

Converts the given value to a String. 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.