pub enum MovementReason {
Show 28 variants
AdvancementUnforced,
AdancementForced,
AdvancementThrow,
DoubledOff,
ThrownOut,
CalledOutReturning,
ForceOut,
RunnerCalledOut,
DefensiveIndifference,
Rundown,
OutStretching,
StolenBase2B,
StolenBase3B,
StolenBaseHome,
CaughtStealing2B,
CaughtStealing3B,
CaughtStealingHome,
Pickoff1B,
Pickoff2B,
Pickoff3B,
PickoffError1B,
PickoffError2B,
PickoffError3B,
PickoffCaughtStealing2B,
PickoffCaughtStealing3B,
PickoffCaughtStealingHome,
Interference,
HitByBall,
}Expand description
Reasons for baserunner movement
Variants§
AdvancementUnforced
AdancementForced
Forced base advancement, such as moving up one base on a single.
AdvancementThrow
Advancement from a choice in throwing, such as throwing home and allowing this runner to move up a base instead.
DoubledOff
Runner fails to tag up and is forced out.
ThrownOut
CalledOutReturning
ForceOut
Standard force-out.
RunnerCalledOut
Deviation from the basepath, etc.
DefensiveIndifference
A Stolen Base with no throw.
Rundown
OutStretching
Stretching a single into a double.
StolenBase2B
StolenBase3B
StolenBaseHome
CaughtStealing2B
CaughtStealing3B
CaughtStealingHome
Pickoff1B
Successful pickoff
Pickoff2B
Successful pickoff
Pickoff3B
Successful pickoff
PickoffError1B
PickoffError2B
PickoffError3B
PickoffCaughtStealing2B
PickoffCaughtStealing3B
PickoffCaughtStealingHome
Interference
General interference
HitByBall
Implementations§
Source§impl MovementReason
impl MovementReason
Sourcepub const fn is_pickoff(self) -> bool
pub const fn is_pickoff(self) -> bool
If the movement reason is a pickoff
Sourcepub const fn is_stolen_base_attempt(self) -> bool
pub const fn is_stolen_base_attempt(self) -> bool
If the movement reason is a stolen base attempt
Sourcepub const fn is_stolen_base(self) -> bool
pub const fn is_stolen_base(self) -> bool
If the movement reason is a stolen base
Trait Implementations§
Source§impl Clone for MovementReason
impl Clone for MovementReason
Source§fn clone(&self) -> MovementReason
fn clone(&self) -> MovementReason
Returns a duplicate of the value. Read more
1.0.0 · 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 MovementReason
impl Debug for MovementReason
Source§impl<'de> Deserialize<'de> for MovementReason
impl<'de> Deserialize<'de> for MovementReason
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 MovementReason
impl Display for MovementReason
Source§impl PartialEq for MovementReason
impl PartialEq for MovementReason
impl Copy for MovementReason
impl Eq for MovementReason
impl StructuralPartialEq for MovementReason
Auto Trait Implementations§
impl Freeze for MovementReason
impl RefUnwindSafe for MovementReason
impl Send for MovementReason
impl Sync for MovementReason
impl Unpin for MovementReason
impl UnsafeUnpin for MovementReason
impl UnwindSafe for MovementReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.