Trait PhysicsLayer

Source
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§

Source

fn to_bits(&self) -> u32

Source

fn all_bits() -> u32

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.

Implementations on Foreign Types§

Source§

impl<T> PhysicsLayer for &T
where T: PhysicsLayer,

Implementors§