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§fn split_by_len(&self, bin_size: u64) -> impl Iterator<Item = GenomicRange>
fn split_by_len(&self, bin_size: u64) -> impl Iterator<Item = GenomicRange>
Split into consecutive records with the specified length. The length of
the last record may be shorter.
Source§fn rsplit_by_len(&self, bin_size: u64) -> impl Iterator<Item = GenomicRange>
fn rsplit_by_len(&self, bin_size: u64) -> impl Iterator<Item = GenomicRange>
Split into consecutive records with the specified length starting from the end.
The result is in reverse order compared to
split_by_len. The length of the last
record may be shorter.Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for GenomicRange
impl<'__de, __Context> BorrowDecode<'__de, __Context> for GenomicRange
Source§fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>(
decoder: &mut __D,
) -> Result<Self, DecodeError>
fn borrow_decode<__D: BorrowDecoder<'__de, Context = __Context>>( decoder: &mut __D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl Clone for GenomicRange
impl Clone for GenomicRange
Source§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 moreSource§impl Debug for GenomicRange
impl Debug for GenomicRange
Source§impl<__Context> Decode<__Context> for GenomicRange
impl<__Context> Decode<__Context> for GenomicRange
Source§impl Display for GenomicRange
impl Display for GenomicRange
Source§impl Encode for GenomicRange
impl Encode for GenomicRange
Source§impl FromStr for GenomicRange
Convert string to GenomicRange. ‘\t’, ‘:’, and ‘-’ are all considered as
valid delimiters. So any of the following formats is valid:
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§impl PartialOrd for GenomicRange
impl PartialOrd 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 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more