Skip to main content

Intersects

Trait Intersects 

Source
pub trait Intersects<Rhs = Self> {
    // Required method
    fn intersects(&self, rhs: &Rhs) -> bool;
}
Expand description

A trait for values that can report whether they intersect Rhs.

Required Methods§

Source

fn intersects(&self, rhs: &Rhs) -> bool

Returns true when self intersects rhs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§