Trait Contains2D

Source
pub trait Contains2D<T> {
    // Required method
    fn contains(&self, other: &T) -> bool;

    // Provided method
    fn overlaps(&self, other: &T) -> bool { ... }
}
Expand description

Whether this instance contains or covers something else.

Required Methods§

Source

fn contains(&self, other: &T) -> bool

Whether this instance contains or covers the other.

Provided Methods§

Source

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

Whether this instance overlaps the other.

Implementors§