[][src]Trait spacebattleship::game::uniform::PlayerId

pub trait PlayerId: Debug + Clone + Eq + Hash { }

Types used for the ID of a player. IDs are treated as disposable and cheaply cloneable. If you need a complex ID type that isn't cheap to clone, you may want to wrap it in Rc or Arc.

Auto-implemented for any type which implements Debug,Clone, Eq, and Hash.

Implementors

impl<T: Debug + Clone + Eq + Hash> PlayerId for T[src]

Loading content...