1 2 3 4 5 6 7 8 9 10 11 12 13 14
//! Shorthands for the engine's identifiers of players. use crate::players::UserId; /// The user ID `id`. /// /// For tests only. /// /// # Panics /// /// If `id` is 0, which the engine never assigns. pub fn user(id: u16) -> UserId { UserId::new(id).unwrap() }