Enum ndm::DiceParseError [−][src]
pub enum DiceParseError { ZeroCount, ShortFuse, LongFuse(u16), TooManyKept(isize), CannotExplode, TooManySides(u16), ZeroSides, TooManyDice(usize), Unparseable, Regex, }
Variants
An attempt was made to create zero dice.
A fuse of 1 was provided; such a fuse would always explode.
LongFuse(u16)
An impossible fuse was provided; such a fuse would never explode and indicates a logic error.
TooManyKept(isize)
More dice were kept than rolled.
Fate dice and d1s can’t explode.
TooManySides(u16)
Dice were requested with more sides than Dice::SIDES_LIMIT.
A request for dice with no sides.
TooManyDice(usize)
More than Dice::COUNT_LIMIT were requested.
Not in the correct format ([n
]d[m
][/<H|L>keep
][![fuse
]]).
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 Clone for DiceParseError
[src]fn clone(&self) -> DiceParseError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for DiceParseError
[src]
impl Copy for DiceParseError
[src]impl Display for DiceParseError
[src]
impl Display for DiceParseError
[src]impl Eq for DiceParseError
[src]
impl Eq for DiceParseError
[src]impl Error for DiceParseError
[src]
impl Error for DiceParseError
[src]impl PartialEq<DiceParseError> for DiceParseError
[src]
impl PartialEq<DiceParseError> for DiceParseError
[src]fn eq(&self, other: &DiceParseError) -> bool
[src]
fn ne(&self, other: &DiceParseError) -> bool
[src]
impl StructuralPartialEq for DiceParseError
[src]
impl StructuralPartialEq for DiceParseError
[src]Auto Trait Implementations
impl RefUnwindSafe for DiceParseError
impl RefUnwindSafe for DiceParseError
impl Send for DiceParseError
impl Send for DiceParseError
impl Sync for DiceParseError
impl Sync for DiceParseError
impl Unpin for DiceParseError
impl Unpin for DiceParseError
impl UnwindSafe for DiceParseError
impl UnwindSafe for DiceParseError