pub trait PhysicsLayer: Sized {
// Required methods
fn to_bits(&self) -> u32;
fn all_bits() -> u32;
}
Expand description
Describes a collision layer
It is recommended to implement it using the derive macro.
Required Methods§
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.