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§
Provided Methods§
Sourcefn contains<L>(&self, locus: L) -> boolwhere
L: AbstractLocus,
fn contains<L>(&self, locus: L) -> boolwhere
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.