Enum ndm::DiceParseError[][src]

pub enum DiceParseError {
    ShortFuse,
    TooManyKept(isize),
    CannotExplode,
    TooManySides(u16),
    ZeroSides,
    TooManyDice(usize),
    Unparseable,
    Regex,
}

Variants

ShortFuse

A fuse of 1 was provided; such a fuse would always explode.

TooManyKept(isize)

More dice were kept than rolled.

CannotExplode

Fate dice and d1s can’t explode.

TooManySides(u16)

Dice were requested with more sides than Dice::SIDES_LIMIT.

ZeroSides

A request for dice with no sides.

TooManyDice(usize)

More than Dice::COUNT_LIMIT were requested.

Unparseable

Not in the correct format ([n]d[m][/<H|L>keep][![fuse]]).

Regex

The dice-matching regular expression matched when it shouldn’t have, which is probably a bug in ndm.

Trait Implementations

impl Clone for DiceParseError[src]

impl Copy for DiceParseError[src]

impl Debug for DiceParseError[src]

impl Display for DiceParseError[src]

impl Eq for DiceParseError[src]

impl Error for DiceParseError[src]

impl PartialEq<DiceParseError> for DiceParseError[src]

impl StructuralPartialEq for DiceParseError[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> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,