AddCollision

Trait AddCollision 

Source
pub trait AddCollision {
    type EntityId: Copy + Eq;
    type CB<'a>: EntityBuilder<'a, Entity = Self::EntityId>
       where Self: 'a;

    // Required method
    fn collision<'a>(&'a mut self, collision: Collision<'a>) -> Self::CB<'a>;
}

Required Associated Types§

Source

type EntityId: Copy + Eq

Source

type CB<'a>: EntityBuilder<'a, Entity = Self::EntityId> where Self: 'a

Required Methods§

Source

fn collision<'a>(&'a mut self, collision: Collision<'a>) -> Self::CB<'a>

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.

Implementors§