pub struct Region { /* private fields */ }
Expand description
Genomic coordinates, used in [struct.IndexedReader.html#method.fetch] and [struct.IndexedReader.html#method.pileup].
ref_id
is 0-based, start-end
is 0-based half-open interval.
Implementations§
Source§impl Region
impl Region
Sourcepub fn new(ref_id: u32, start: u32, end: u32) -> Region
pub fn new(ref_id: u32, start: u32, end: u32) -> Region
Creates new region. ref_id
is 0-based, start-end
is 0-based half-open interval.
pub fn ref_id(&self) -> u32
pub fn start(&self) -> u32
pub fn end(&self) -> u32
pub fn len(&self) -> u32
pub fn set_ref_id(&mut self, ref_id: u32)
pub fn set_start(&mut self, start: u32)
pub fn set_end(&mut self, end: u32)
pub fn contains(&self, ref_id: u32, pos: u32) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Region
impl RefUnwindSafe for Region
impl Send for Region
impl Sync for Region
impl Unpin for Region
impl UnwindSafe for Region
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