Struct bed_utils::bed::GenomicRange
source · pub struct GenomicRange(/* private fields */);Expand description
A minimal BED record with only 3 fields.
Implementations§
Trait Implementations§
source§impl BEDLike for GenomicRange
impl BEDLike for GenomicRange
source§fn set_start(&mut self, start: u64) -> &mut Self
fn set_start(&mut self, start: u64) -> &mut Self
Change the 0-based start position of the record
source§fn set_end(&mut self, end: u64) -> &mut Self
fn set_end(&mut self, end: u64) -> &mut Self
Change the end position (non-inclusive) of the record
source§fn len(&self) -> u64
fn len(&self) -> u64
Return the length of the record. Return 0 if the end position is smaller
than the start position.
fn compare(&self, other: &Self) -> Ordering
source§fn n_overlap<B: BEDLike>(&self, other: &B) -> u64
fn n_overlap<B: BEDLike>(&self, other: &B) -> u64
Return the size of overlap between two records
source§fn to_genomic_range(&self) -> GenomicRange
fn to_genomic_range(&self) -> GenomicRange
Convert the record to a
GenomicRangesource§impl Clone for GenomicRange
impl Clone for GenomicRange
source§fn clone(&self) -> GenomicRange
fn clone(&self) -> GenomicRange
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 GenomicRange
impl Debug for GenomicRange
source§impl<'de> Deserialize<'de> for GenomicRange
impl<'de> Deserialize<'de> for GenomicRange
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Display for GenomicRange
impl Display for GenomicRange
source§impl FromStr for GenomicRange
impl FromStr for GenomicRange
Convert string to GenomicRange. ‘\t’, ‘:’, and ‘-’ are all considered as valid delimiters. So any of the following formats is valid:
- chr1\t100\t200
- chr1:100-200
source§impl Hash for GenomicRange
impl Hash for GenomicRange
source§impl Ord for GenomicRange
impl Ord for GenomicRange
source§fn cmp(&self, other: &GenomicRange) -> Ordering
fn cmp(&self, other: &GenomicRange) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GenomicRange
impl PartialEq for GenomicRange
source§fn eq(&self, other: &GenomicRange) -> bool
fn eq(&self, other: &GenomicRange) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for GenomicRange
impl PartialOrd for GenomicRange
source§fn partial_cmp(&self, other: &GenomicRange) -> Option<Ordering>
fn partial_cmp(&self, other: &GenomicRange) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for GenomicRange
impl Serialize for GenomicRange
source§impl Sortable for GenomicRange
impl Sortable for GenomicRange
impl Eq for GenomicRange
impl StructuralPartialEq for GenomicRange
Auto Trait Implementations§
impl RefUnwindSafe for GenomicRange
impl Send for GenomicRange
impl Sync for GenomicRange
impl Unpin 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
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.