Struct GenomicRange
pub struct GenomicRange { /* private fields */ }Expand description
A genomic interval with explicit coordinate assumptions.
Implementations§
§impl GenomicRange
impl GenomicRange
pub fn new(
start: GenomicPosition,
end: GenomicPosition,
) -> Result<GenomicRange, GenomicRangeError>
pub fn new( start: GenomicPosition, end: GenomicPosition, ) -> Result<GenomicRange, GenomicRangeError>
Creates a genomic range using zero-based half-open coordinates and unstranded orientation.
§Errors
Returns GenomicRangeError::EndBeforeStart when end < start.
pub const fn with_strand(self, strand: Strand) -> GenomicRange
pub const fn with_strand(self, strand: Strand) -> GenomicRange
Sets the strand without changing positions.
pub fn with_coordinate_system(
self,
coordinate_system: CoordinateSystem,
) -> GenomicRange
pub fn with_coordinate_system( self, coordinate_system: CoordinateSystem, ) -> GenomicRange
Sets the coordinate system without converting positions.
pub const fn start(&self) -> GenomicPosition
pub const fn start(&self) -> GenomicPosition
Returns the start position.
pub const fn end(&self) -> GenomicPosition
pub const fn end(&self) -> GenomicPosition
Returns the end position.
pub const fn coordinate_system(&self) -> &CoordinateSystem
pub const fn coordinate_system(&self) -> &CoordinateSystem
Returns the coordinate system.
Trait Implementations§
§impl Clone for GenomicRange
impl Clone for GenomicRange
§fn clone(&self) -> GenomicRange
fn clone(&self) -> GenomicRange
Returns a duplicate 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 more§impl Debug for GenomicRange
impl Debug for GenomicRange
§impl PartialEq for GenomicRange
impl PartialEq for GenomicRange
impl Eq for GenomicRange
impl StructuralPartialEq for GenomicRange
Auto Trait Implementations§
impl Freeze for GenomicRange
impl RefUnwindSafe for GenomicRange
impl Send for GenomicRange
impl Sync for GenomicRange
impl Unpin for GenomicRange
impl UnsafeUnpin for GenomicRange
impl UnwindSafe for GenomicRange
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