Struct noodles_gff::directive::sequence_region::SequenceRegion
source · pub struct SequenceRegion { /* private fields */ }
Expand description
A GFF directive sequence region.
Implementations§
source§impl SequenceRegion
impl SequenceRegion
sourcepub fn new(reference_sequence_name: String, start: i32, end: i32) -> Self
pub fn new(reference_sequence_name: String, start: i32, end: i32) -> Self
Creates a sequence region directive.
§Examples
use noodles_gff::directive::SequenceRegion;
let sequence_region = SequenceRegion::new(String::from("sq0"), 8, 13);
sourcepub fn reference_sequence_name(&self) -> &str
pub fn reference_sequence_name(&self) -> &str
Returns the reference sequence name.
§Examples
use noodles_gff::directive::SequenceRegion;
let sequence_region = SequenceRegion::new(String::from("sq0"), 8, 13);
assert_eq!(sequence_region.reference_sequence_name(), "sq0");
Trait Implementations§
source§impl Clone for SequenceRegion
impl Clone for SequenceRegion
source§fn clone(&self) -> SequenceRegion
fn clone(&self) -> SequenceRegion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SequenceRegion
impl Debug for SequenceRegion
source§impl Display for SequenceRegion
impl Display for SequenceRegion
source§impl FromStr for SequenceRegion
impl FromStr for SequenceRegion
source§impl PartialEq for SequenceRegion
impl PartialEq for SequenceRegion
source§fn eq(&self, other: &SequenceRegion) -> bool
fn eq(&self, other: &SequenceRegion) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SequenceRegion
impl StructuralPartialEq for SequenceRegion
Auto Trait Implementations§
impl Freeze for SequenceRegion
impl RefUnwindSafe for SequenceRegion
impl Send for SequenceRegion
impl Sync for SequenceRegion
impl Unpin for SequenceRegion
impl UnwindSafe for SequenceRegion
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.