pub struct RunGoals {
pub target_pearls: u32,
pub target_rods: u32,
}
Expand description
The goals of a run simulation. This represents the minimum resources a runner is looking for out of this run before moving on. E.G. total_pearls is the number of ender pearls the runner wants before they stop trading with piglins.
This does not take into account ideas like “batches” of trades, where a runner might choose to leave before reaching their goal because the run won’t pb if they have to trade any more and they just hope that they get good portal luck.
Ideas like this are not in scope for this simulation and can be accounted for in the analysis of the data.
Fields§
§target_pearls: u32
§target_rods: u32
Trait Implementations§
Source§impl<'de> Deserialize<'de> for RunGoals
impl<'de> Deserialize<'de> for RunGoals
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
impl Copy for RunGoals
Auto Trait Implementations§
impl Freeze for RunGoals
impl RefUnwindSafe for RunGoals
impl Send for RunGoals
impl Sync for RunGoals
impl Unpin for RunGoals
impl UnwindSafe for RunGoals
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§unsafe fn to_subset_unchecked(&self) -> SS
unsafe 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.