Struct retrosheet::event::Player
[−]
[src]
pub struct Player { pub id: PlayerId, pub name: String, pub team: Team, pub batting_pos: u8, pub fielding_pos: u8, }
A player, referred to in starter events or in substitutions.
Fields
id: PlayerId
The player's ID.
name: String
The player's name.
team: Team
Which team the player was on for this game.
batting_pos: u8
The batting position of the player (i.e. batting order). If the DH is being used, the pitcher is given position 0.
fielding_pos: u8
The fielding position of the player in standard notation. DH is 10, pinch hitter is 11, and pinch runner is 12 (the last two being used for subs).
Trait Implementations
impl Clone for Player
[src]
fn clone(&self) -> Player
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Player
[src]
impl PartialEq for Player
[src]
fn eq(&self, __arg_0: &Player) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Player) -> bool
This method tests for !=
.
impl Eq for Player
[src]
impl Hash for Player
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the state given, updating the hasher as necessary.
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
Feeds a slice of this type into the state provided.