pub struct GameContextUpdateOptions {
pub duration: u32,
pub net_yards: i32,
pub off_score: ScoreResult,
pub def_score: ScoreResult,
pub turnover: bool,
pub touchback: bool,
pub kickoff_oob: bool,
pub off_timeout: bool,
pub def_timeout: bool,
pub next_play_extra_point: bool,
pub between_play: bool,
pub end_of_game: bool,
}Expand description
§GameContextUpdateOptions struct
A GameContextUpdateOptions contains the parameters required to derive
the next game context
Fields§
§duration: u32§net_yards: i32§off_score: ScoreResult§def_score: ScoreResult§turnover: bool§touchback: bool§kickoff_oob: bool§off_timeout: bool§def_timeout: bool§next_play_extra_point: bool§between_play: bool§end_of_game: boolTrait Implementations§
Source§impl Clone for GameContextUpdateOptions
impl Clone for GameContextUpdateOptions
Source§fn clone(&self) -> GameContextUpdateOptions
fn clone(&self) -> GameContextUpdateOptions
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 GameContextUpdateOptions
impl Debug for GameContextUpdateOptions
Source§impl Default for GameContextUpdateOptions
impl Default for GameContextUpdateOptions
Source§fn default() -> GameContextUpdateOptions
fn default() -> GameContextUpdateOptions
Returns the “default value” for a type. Read more
Source§impl Ord for GameContextUpdateOptions
impl Ord for GameContextUpdateOptions
Source§fn cmp(&self, other: &GameContextUpdateOptions) -> Ordering
fn cmp(&self, other: &GameContextUpdateOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for GameContextUpdateOptions
impl PartialEq for GameContextUpdateOptions
Source§impl PartialOrd for GameContextUpdateOptions
impl PartialOrd for GameContextUpdateOptions
impl Eq for GameContextUpdateOptions
impl StructuralPartialEq for GameContextUpdateOptions
Auto Trait Implementations§
impl Freeze for GameContextUpdateOptions
impl RefUnwindSafe for GameContextUpdateOptions
impl Send for GameContextUpdateOptions
impl Sync for GameContextUpdateOptions
impl Unpin for GameContextUpdateOptions
impl UnwindSafe for GameContextUpdateOptions
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.