[][src]Enum dice_command_parser::dice_roll::RollType

pub enum RollType {
    WithAdvantage,
    WithDisadvantage,
    Regular,
    Independent,
}

Represents whether a roll has advantage, disadvantage, independence, or not.

Variants

WithAdvantage

The roll has advantage and the highest of the two rolls for a set of dice is taken.

WithDisadvantage

The roll has disadvantage and the lowest of the two rolls for a set of dice is taken.

Regular

A regular roll occurs - only one roll needs to occur.

Independent

The each of the dice are independent of each other in the roll and the modifier should be applied to each.

Trait Implementations

impl Clone for RollType[src]

impl Debug for RollType[src]

impl Default for RollType[src]

impl PartialEq<RollType> for RollType[src]

impl StructuralPartialEq for RollType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.