Trait Overlaps

Source
pub(crate) trait Overlaps {
    // Required method
    fn overlaps(&self, other: &Self) -> bool;
}
Expand description

Checks whether something overlaps with something else.

Required Methods§

Source

fn overlaps(&self, other: &Self) -> bool

Does this overlap with other?

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.

Implementations on Foreign Types§

Source§

impl<I: Ord> Overlaps for Range<I>

Source§

fn overlaps(&self, other: &Self) -> bool

Implementors§