pub struct GameDisplay { /* private fields */ }Expand description
A struct to allow for custom rending of the game
Implementations§
Source§impl GameDisplay
impl GameDisplay
Sourcepub fn dealer_score(&self) -> u8
pub fn dealer_score(&self) -> u8
Return the dealers score
Sourcepub fn dealer_hand(&self) -> &[Card]
pub fn dealer_hand(&self) -> &[Card]
Return the dealers hand
Sourcepub fn player_score(&self) -> u8
pub fn player_score(&self) -> u8
Return the players score
Sourcepub fn player_hand(&self) -> &[Card]
pub fn player_hand(&self) -> &[Card]
Return the players hand
Trait Implementations§
Source§impl Clone for GameDisplay
impl Clone for GameDisplay
Source§fn clone(&self) -> GameDisplay
fn clone(&self) -> GameDisplay
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GameDisplay
impl Debug for GameDisplay
Source§impl<'de> Deserialize<'de> for GameDisplay
impl<'de> Deserialize<'de> for GameDisplay
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for GameDisplay
impl Display for GameDisplay
impl Eq for GameDisplay
Source§impl Hash for GameDisplay
impl Hash for GameDisplay
Source§impl PartialEq for GameDisplay
impl PartialEq for GameDisplay
Source§fn eq(&self, other: &GameDisplay) -> bool
fn eq(&self, other: &GameDisplay) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GameDisplay
impl Serialize for GameDisplay
impl StructuralPartialEq for GameDisplay
Auto Trait Implementations§
impl Freeze for GameDisplay
impl RefUnwindSafe for GameDisplay
impl Send for GameDisplay
impl Sync for GameDisplay
impl Unpin for GameDisplay
impl UnsafeUnpin for GameDisplay
impl UnwindSafe for GameDisplay
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