Enum ndm::DiceParseError [−][src]
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]
fn clone(&self) -> DiceParseError
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[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]
Auto Trait Implementations
impl RefUnwindSafe for DiceParseError
impl Send for DiceParseError
impl Sync for DiceParseError
impl Unpin for DiceParseError
impl UnwindSafe for DiceParseError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,