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
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<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
)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.