[−][src]Struct blackjack::player::player::Hand
Methods
impl Hand
[src]
pub fn new(wager: i32, deck: &mut Deck) -> Hand
[src]
pub fn card_iter(&self) -> Iter<Card>
[src]
pub fn get_card_count(&self) -> usize
[src]
pub fn get_card_at(&self, idx: usize) -> Card
[src]
pub fn set(&mut self)
[src]
pub fn get_is_set(&self) -> bool
[src]
pub fn surrender(&mut self) -> bool
[src]
pub fn did_surrender(&self) -> bool
[src]
pub fn can_surrender_hand(&self) -> bool
[src]
pub fn lost(&self) -> bool
[src]
pub fn split(&mut self, deck: &mut Deck) -> Option<Hand>
[src]
pub fn can_split_hand(&self) -> bool
[src]
pub fn double_wager(&mut self, deck: &mut Deck) -> bool
[src]
pub fn hit(&mut self, deck: &mut Deck) -> bool
[src]
pub fn busted(&self) -> bool
[src]
pub fn get_wager(&self) -> i32
[src]
pub fn value(&self, get_aces: bool) -> u32
[src]
pub fn is_soft(&self) -> bool
[src]
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,