Struct noodles_gff::record::Record [−][src]
pub struct Record { /* fields omitted */ }
Expand description
A GFF record.
Implementations
Returns a builder to create a record from each of its fields.
Examples
use noodles_gff as gff;
let record = gff::Record::builder()
.set_reference_sequence_name(String::from("sq0"))
.build();
assert_eq!(record.reference_sequence_name(), "sq0");
Returns the reference sequence name of the record.
Examples
use noodles_gff as gff;
let record = gff::Record::default();
assert_eq!(record.reference_sequence_name(), ".");
Returns the source of the record.
Examples
use noodles_gff as gff;
let record = gff::Record::default();
assert_eq!(record.source(), ".");
Returns the feature type of the record.
Examples
use noodles_gff as gff;
let record = gff::Record::default();
assert_eq!(record.ty(), ".");
Returns the start position of the record.
This value is 1-based.
Examples
use noodles_gff as gff;
let record = gff::Record::default();
assert_eq!(record.start(), 1);
Returns the end position of the record.
This value is 1-based.
Examples
use noodles_gff as gff;
let record = gff::Record::default();
assert_eq!(record.end(), 1);
Returns the score of the record.
Examples
use noodles_gff as gff;
let record = gff::Record::default();
assert!(record.score().is_none());
Returns the strand of the record.
Examples
use noodles_gff::{self as gff, record::Strand};
let record = gff::Record::default();
assert_eq!(record.strand(), Strand::None);
Returns the phase of the record.
Examples
use noodles_gff as gff;
let record = gff::Record::default();
assert!(record.phase().is_none());
Returns the attributes of the record.
Examples
use noodles_gff as gff;
let record = gff::Record::default();
assert!(record.attributes().is_empty());
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Record
impl UnwindSafe for Record
Blanket Implementations
Mutably borrows from an owned value. Read more