[][src]Enum retrosheet::event::PlayDescription

pub enum PlayDescription {
    Balk,
    FielderSequence(Vec<(Fielder, bool)>, Option<Base>),
    GIDP(Vec<Fielder>, Base),
    GITP {
        first_assists: Vec<Fielder>,
        first_out: Base,
        second_assists: Vec<Fielder>,
        second_out: Base,
        putout: Fielder,
    },
    FieldersChoice(Fielder),
    Error(Fielder),
    FoulFlyBallError(Fielder),
    Strikeout(Option<Box<PlayDescription>>, Vec<(Fielder, bool)>),
    Walk(Option<Box<PlayDescription>>),
    PassedBall,
    WildPitch,
    Single(Vec<Fielder>),
    Double(Vec<Fielder>),
    Triple(Vec<Fielder>),
    HomeRun,
    InsideTheParkHomeRun(Vec<Fielder>),
    NoPlay,
    StolenBase(Vec<(Base, bool)>),
    HitByPitch,
    CatcherInterference(Fielder),
    GroundRuleDouble,
    IntentionalWalk,
    DefensiveIndifference,
    OtherAdvance,
    PickOff(BaseVec<FieldParameter>),
    PickOffCaughtStealing(BaseVec<Fielder>),
    CaughtStealing(BaseVec<Fielder>),
    LinedIntoDoublePlay {
        first_out: Fielder,
        second_out: Vec<Fielder>,
        second_out_runner: Base,
    },
    LinedIntoTriplePlay {
        first_out: Fielder,
        second_out: Vec<Fielder>,
        second_out_runner: Base,
        third_out: Vec<Fielder>,
        third_out_runner: Base,
    },
}

A description of the basic play in a play event.

Variants

Balk

A balk.

FielderSequence(Vec<(Fielder, bool)>, Option<Base>)

A sequence of fielder plays. Just one means a flyout/unassisted groundout, while multiple means the last fielder made the out and the others got the assist.

The boolean in the fielder play notes whether the play was an error.

If the putout is made at a base not normally covered by the fielder the base runner is given explicitly in the second field. If not, the field is left as None.

GIDP(Vec<Fielder>, Base)

The batter grounded into a double play, with the base the first out was recorded on.

GITP

The batter grounded into a triple play. We provide the assists for the first out (and the base the first out was recorded on), the second out, and the putout.

Fields of GITP

first_assists: Vec<Fielder>

The throws for the first out.

first_out: Base

The base the first out was recorded on.

second_assists: Vec<Fielder>

The throws for the second out.

second_out: Base

The base the second out was recorded on.

putout: Fielder

The putout fielder.

FieldersChoice(Fielder)

A fielder's choice, where the fielder given is the fielder first fielding the ball. The batter advance to first is understood if it is not given explicitly.

Error(Fielder)

An error by a fielder.

FoulFlyBallError(Fielder)

An error by a fielder attempting to field a foul fly ball.

A strikeout. May or may not be accompanied by an additional event, for example if there was a dropped third strike. May also be accompanied by a fielder sequence if the dropped third strike resulted in a putout.

A walk. May or may not be accompanied by an additional event, describing potential base running events.

PassedBall

A passed ball.

WildPitch

A wild pitch.

Single(Vec<Fielder>)

A single (optionally) handled by a fielder or fielders.

Double(Vec<Fielder>)

A double (optionally) handled by a fielder or fielders.

Triple(Vec<Fielder>)

A triple (optionally) handled by a fielder or fielders.

HomeRun

A home run.

InsideTheParkHomeRun(Vec<Fielder>)

An inside-the-park home run, with relevant fielder informatino.

NoPlay

No play was made. Used when a substitution immediately follows.

StolenBase(Vec<(Base, bool)>)

Stolen base(s), with the base information. If the boolean is set to true, that means it was a steal of home where the run is unearned.

HitByPitch

The player was hit by a pitch.

CatcherInterference(Fielder)

Catcher interference. Technically, this also covers interference by the pitcher or first baseman for interfering with the batter, so there is still a fielder option. But usually the fielder will be the catcher.

GroundRuleDouble

A ground rule double. No fielder specified.

IntentionalWalk

An intentional walk.

DefensiveIndifference

Defensive indifference: no attempt to prevent a stolen base. The advance field specifies which base the runner went to.

OtherAdvance

A base runner advance that is not covered by one of the other codes. A comment may be given explaining the advance.

PickOff(BaseVec<FieldParameter>)

A runner was picked off a base, along with a throw and the fielder making the put out. May instead just be an error (e.g. PO1(E3)), negating the out.

PickOffCaughtStealing(BaseVec<Fielder>)

A pick off that resulted in a caught stealing off of some base, along with a sequence of throws that resulted in the out. Note that there wouldn't be errors here since the implication is that they were caught.

CaughtStealing(BaseVec<Fielder>)

A normal caught stealing event.

LinedIntoDoublePlay

A batter lining into a double play. Should be followed with an LDP modifier, but we don't verify this.

Fields of LinedIntoDoublePlay

first_out: Fielder

The fielder who made the first out.

second_out: Vec<Fielder>

The throws for the second out.

second_out_runner: Base

The base the second out was recorded on.

LinedIntoTriplePlay

A batter lining into a triple play. Should be followed with an LTP modifier, but we don't verify this.

Fields of LinedIntoTriplePlay

first_out: Fielder

The fielder who made the first out.

second_out: Vec<Fielder>

The throws for the second out.

second_out_runner: Base

The base the second out was recorded on.

third_out: Vec<Fielder>

The throws for the third out.

third_out_runner: Base

The base the third out was recorded on.

Trait Implementations

impl Clone for PlayDescription[src]

impl Eq for PlayDescription[src]

impl PartialEq<PlayDescription> for PlayDescription[src]

impl Debug for PlayDescription[src]

impl Hash for PlayDescription[src]

impl StructuralPartialEq for PlayDescription[src]

impl StructuralEq for PlayDescription[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]