pub enum PostProcessor {
Sum,
Avg,
Max,
Min,
}Expand description
Post processing action after a round of dice roll
§Example
3d6default to sum of roll a 6 sides dice 3 times3d6maxmeans get the max value of those 3 result3d6minmeans get the min value of those 3 result3d6avgmeans get the avg value of those 3 result
Variants§
Sum
get sum of all roll, default action
Avg
get avg value of all roll, will round down(floor) if not divisible
Max
get max value of all roll
Min
get min value of all roll
Trait Implementations§
Source§impl Clone for PostProcessor
impl Clone for PostProcessor
Source§fn clone(&self) -> PostProcessor
fn clone(&self) -> PostProcessor
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PostProcessor
impl Debug for PostProcessor
Source§impl FromStr for PostProcessor
impl FromStr for PostProcessor
Source§impl Hash for PostProcessor
impl Hash for PostProcessor
Source§impl PartialEq for PostProcessor
impl PartialEq for PostProcessor
Source§fn eq(&self, other: &PostProcessor) -> bool
fn eq(&self, other: &PostProcessor) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for PostProcessor
impl Eq for PostProcessor
impl StructuralPartialEq for PostProcessor
Auto Trait Implementations§
impl Freeze for PostProcessor
impl RefUnwindSafe for PostProcessor
impl Send for PostProcessor
impl Sync for PostProcessor
impl Unpin for PostProcessor
impl UnsafeUnpin for PostProcessor
impl UnwindSafe for PostProcessor
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