pub struct EncounterSystem { /* private fields */ }Implementations§
Source§impl EncounterSystem
impl EncounterSystem
pub fn new( species: Arc<HashMap<i32, Arc<SpeciesData>>>, rarity_exponent: f64, ) -> Self
pub fn roll_encounter( &self, time: DateTime<Tz>, weather: EncounterWeather, location_id: LocationId, ) -> Option<SpeciesId>
Auto Trait Implementations§
impl Freeze for EncounterSystem
impl RefUnwindSafe for EncounterSystem
impl Send for EncounterSystem
impl Sync for EncounterSystem
impl Unpin for EncounterSystem
impl UnwindSafe for EncounterSystem
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> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more