[][src]Struct dndtools::DiceToRoll

pub struct DiceToRoll {
    pub die: Die,
    pub number: u32,
}

Struct to represent multiple dice of a single type to be rolled, such as 2d6.

Fields

die: Dienumber: u32

Implementations

impl DiceToRoll[src]

pub const fn new(number: u32, die: Die) -> DiceToRoll[src]

pub fn from_string(s: String) -> Result<DiceToRoll, String>[src]

Generate a DiceToRoll from a string such as '2d6'.

Trait Implementations

impl Debug for DiceToRoll[src]

impl PartialEq<DiceToRoll> for DiceToRoll[src]

impl StructuralPartialEq for DiceToRoll[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> Pointable for T

type Init = T

The type for initializers.

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>,