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

The player's ID.

The player's name.

Which team the player was on for this game.

The batting position of the player (i.e. batting order). If the DH is being used, the pitcher is given position 0.

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]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Player
[src]

Formats the value using the given formatter.

impl PartialEq for Player
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Player
[src]

impl Hash for Player
[src]

Feeds this value into the state given, updating the hasher as necessary.

Feeds a slice of this type into the state provided.