pub struct Seat { /* private fields */ }
Implementations§
Source§impl Seat
impl Seat
pub fn new(player: RoundPlayer) -> Self
pub fn player_number(&self) -> PlayerNumber
pub fn player(&self) -> Option<&RoundPlayer>
pub fn create_occupied_seat(&mut self) -> Option<OccupiedSeat<'_>>
pub fn empty_dead_body(&mut self)
pub fn items(&self) -> &Vec<Item>
pub fn create_view(&self) -> SeatView
pub fn get_new_item<TRng>(
&mut self,
remaining_players: usize,
current_table_item_counts: &IndexMap<Item, usize>,
rng: &mut TRng,
) -> Option<Item>where
TRng: Rng,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Seat
impl RefUnwindSafe for Seat
impl Send for Seat
impl Sync for Seat
impl Unpin for Seat
impl UnwindSafe for Seat
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