Trait AbstractInterval

Source
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) -> bool
where L: AbstractLocus,

Return true if interval contains given locus.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§