pub struct PlayerResult {
pub player_id: u8,
pub hands: Vec<HandResult>,
pub total_payout: usize,
pub net: isize,
pub insurance_bet: usize,
pub insurance_payout: usize,
}Expand description
Result for a single player after showdown.
Fields§
§player_id: u8The player ID.
hands: Vec<HandResult>Results for each hand (multiple if split).
total_payout: usizeTotal payout for all hands.
net: isizeNet result (positive = profit, negative = loss).
insurance_bet: usizeInsurance bet amount (0 if no insurance taken).
insurance_payout: usizeInsurance payout (0 if dealer didn’t have blackjack or no insurance taken).
Trait Implementations§
Source§impl Clone for PlayerResult
impl Clone for PlayerResult
Source§fn clone(&self) -> PlayerResult
fn clone(&self) -> PlayerResult
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PlayerResult
impl RefUnwindSafe for PlayerResult
impl Send for PlayerResult
impl Sync for PlayerResult
impl Unpin for PlayerResult
impl UnwindSafe for PlayerResult
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