pub trait AbstractInterval {
    // Required methods
    fn contig(&self) -> &str;
    fn range(&self) -> Range<Position>;

    // Provided method
    fn contains<L>(&self, locus: L) -> bool
       where L: AbstractLocus { ... }
}

Required Methods§

source

fn contig(&self) -> &str

Identifier for a genomic contig, e.g., a chromosome

source

fn range(&self) -> Range<Position>

Interval on the contig

Provided Methods§

source

fn contains<L>(&self, locus: L) -> boolwhere L: AbstractLocus,

Return true if interval contains given locus.

Implementors§