Skip to main content

Enemy

Trait Enemy 

Source
pub trait Enemy { }
Expand description

Marks hostile entities, including those outside the Monster hierarchy. Shared rules use this marker to reject leashing.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T: Monster + ?Sized> Enemy for T