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

pub enum RollType {
    WithAdvantage,
    WithDisadvantage,
    Regular,
}

Represents whether a roll has advantage, disadvantage, 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 neds to occur.

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.