pub struct Record { /* private fields */ }
Expand description
A GTF record.
Implementations§
Source§impl Record
impl Record
Sourcepub fn reference_sequence_name(&self) -> &str
pub fn reference_sequence_name(&self) -> &str
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(), ".");
Sourcepub fn source(&self) -> &str
pub fn source(&self) -> &str
Returns the source.
§Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert_eq!(record.source(), ".");
Sourcepub fn ty(&self) -> &str
pub fn ty(&self) -> &str
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(), ".");
Sourcepub fn start(&self) -> Position
pub fn start(&self) -> Position
Returns the start position.
This position is 1-based, inclusive.
§Examples
use noodles_core::Position;
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert_eq!(record.start(), Position::MIN);
Sourcepub fn end(&self) -> Position
pub fn end(&self) -> Position
Returns the end position.
This position is 1-based, inclusive.
§Examples
use noodles_core::Position;
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert_eq!(record.end(), Position::MIN);
Sourcepub fn score(&self) -> Option<f32>
pub fn score(&self) -> Option<f32>
Returns the confidence score.
§Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert!(record.score().is_none());
Sourcepub fn strand(&self) -> Option<Strand>
pub fn strand(&self) -> Option<Strand>
Returns the strand.
§Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert!(record.strand().is_none());
Sourcepub fn frame(&self) -> Option<Frame>
pub fn frame(&self) -> Option<Frame>
Returns the frame.
§Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert!(record.frame().is_none());
Sourcepub fn attributes(&self) -> &Attributes
pub fn attributes(&self) -> &Attributes
Returns the attributes.
§Examples
use noodles_gtf as gtf;
let record = gtf::Record::default();
assert!(record.attributes().is_empty());
Trait Implementations§
impl StructuralPartialEq for Record
Auto Trait Implementations§
impl Freeze for Record
impl RefUnwindSafe for Record
impl Send for Record
impl Sync for Record
impl Unpin for Record
impl UnwindSafe for Record
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)