pub trait CollidesWith<T> {
// Required method
fn collides_with(&self, other: &T) -> bool;
}
Expand description
Trait for types that can detect collisions between itself and an object from type T.
pub trait CollidesWith<T> {
// Required method
fn collides_with(&self, other: &T) -> bool;
}
Trait for types that can detect collisions between itself and an object from type T.