pub struct DistinctDrawReport {
pub written: usize,
pub samples_used: usize,
pub status: DistinctDrawStatus,
}Expand description
Accepted prefix and exact input consumption, including rejected RNG samples.
Only out[..written] is changed. The tail retains its previous values on all
outcomes. samples_used counts SplitMix64 outputs for rolls, or tickets for
ticket draws. Exhaustion is not an error or a rollback: the prefix is valid,
RNG consumption is retained, and another call starts with the full table.
See the examples on RewardTable::roll_distinct_into and
RewardTable::choose_distinct_into.
Fields§
§written: usize§samples_used: usize§status: DistinctDrawStatusTrait Implementations§
Source§impl Clone for DistinctDrawReport
impl Clone for DistinctDrawReport
Source§fn clone(&self) -> DistinctDrawReport
fn clone(&self) -> DistinctDrawReport
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 DistinctDrawReport
impl Debug for DistinctDrawReport
Source§impl PartialEq for DistinctDrawReport
impl PartialEq for DistinctDrawReport
impl Copy for DistinctDrawReport
impl Eq for DistinctDrawReport
impl StructuralPartialEq for DistinctDrawReport
Auto Trait Implementations§
impl Freeze for DistinctDrawReport
impl RefUnwindSafe for DistinctDrawReport
impl Send for DistinctDrawReport
impl Sync for DistinctDrawReport
impl Unpin for DistinctDrawReport
impl UnwindSafe for DistinctDrawReport
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