pub trait Collection:
PartialEq
+ Debug
+ Clone {
type Type;
// Required methods
fn is_contained_in(&self, container: &Self) -> bool;
fn contains(&self, content: &Self::Type) -> bool;
fn overlaps(&self, other: &Self) -> bool;
fn is_left(&self, other: &Self) -> bool;
fn is_over_or_left(&self, other: &Self) -> bool;
fn is_over_or_right(&self, other: &Self) -> bool;
fn is_right(&self, other: &Self) -> bool;
fn is_adjacent(&self, other: &Self) -> bool;
}
Required Associated Types§
Required Methods§
Sourcefn is_contained_in(&self, container: &Self) -> bool
fn is_contained_in(&self, container: &Self) -> bool
Sourcefn is_over_or_left(&self, other: &Self) -> bool
fn is_over_or_left(&self, other: &Self) -> bool
Sourcefn is_over_or_right(&self, other: &Self) -> bool
fn is_over_or_right(&self, other: &Self) -> bool
Sourcefn is_adjacent(&self, other: &Self) -> bool
fn is_adjacent(&self, other: &Self) -> bool
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.