pub struct OpponentGenCtx<'a> {
pub expected_rating: i64,
pub rng: &'a GameRng,
pub config: &'a GameConfig,
pub lookups: &'a ContentLookups,
}Expand description
Inputs for the opponent-generation slot — mirrors the generate_opponent
scope (ExpectedRating, Random) plus config/lookups the content reads.
Fields§
§expected_rating: i64§rng: &'a GameRng§config: &'a GameConfig§lookups: &'a ContentLookupsAuto Trait Implementations§
impl<'a> Freeze for OpponentGenCtx<'a>
impl<'a> RefUnwindSafe for OpponentGenCtx<'a>
impl<'a> Send for OpponentGenCtx<'a>
impl<'a> Sync for OpponentGenCtx<'a>
impl<'a> Unpin for OpponentGenCtx<'a>
impl<'a> UnwindSafe for OpponentGenCtx<'a>
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