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.
pub trait Contains2D<T> {
// Required method
fn contains(&self, other: &T) -> bool;
// Provided method
fn overlaps(&self, other: &T) -> bool { ... }
}
Whether this instance contains or covers something else.