pub trait BEDLike {
Show 14 methods
// Required methods
fn chrom(&self) -> &str;
fn set_chrom(&mut self, chrom: &str) -> &mut Self;
fn start(&self) -> u64;
fn set_start(&mut self, start: u64) -> &mut Self;
fn end(&self) -> u64;
fn set_end(&mut self, end: u64) -> &mut Self;
// Provided methods
fn name(&self) -> Option<&str> { ... }
fn score(&self) -> Option<Score> { ... }
fn strand(&self) -> Option<Strand> { ... }
fn len(&self) -> u64 { ... }
fn compare(&self, other: &Self) -> Ordering { ... }
fn overlap<B: BEDLike>(&self, other: &B) -> Option<GenomicRange> { ... }
fn n_overlap<B: BEDLike>(&self, other: &B) -> u64 { ... }
fn to_genomic_range(&self) -> GenomicRange { ... }
}Expand description
Common BED fields
Required Methods§
Provided Methods§
sourcefn 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
sourcefn 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
sourcefn to_genomic_range(&self) -> GenomicRange
fn to_genomic_range(&self) -> GenomicRange
Convert the record to a GenomicRange
Object Safety§
This trait is not object safe.