Skip to main content

CollidesWith

Trait CollidesWith 

Source
pub trait CollidesWith<T> {
    // Required method
    fn collides_with(&self, other: &T) -> bool;
}
Expand description

Trait for types that can detect collisions between self and other of type T.

Required Methods§

Source

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

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§