pub struct Player<'a> {
player_id: PlayerId,
name: &'a str,
character: PlayerCharacter,
is_active: bool,
lives: i64,
unit_placement: Vec<PlacedUnit>,
unit_bank: &'a [UnitType],
lightsabers: Lightsabers<'a>,
}Fields§
§player_id: PlayerId§name: &'a str§character: PlayerCharacter§is_active: bool§lives: i64§unit_placement: Vec<PlacedUnit>§unit_bank: &'a [UnitType]§lightsabers: Lightsabers<'a>Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Player<'a>
impl<'a> RefUnwindSafe for Player<'a>
impl<'a> Send for Player<'a>
impl<'a> Sync for Player<'a>
impl<'a> Unpin for Player<'a>
impl<'a> UnwindSafe for Player<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more