[][src]Trait one_d_six::Rollable

pub trait Rollable: Display + FromStr + Copy {
    fn roll(max: Self) -> Self;
}

Defines a type that can be rolled for. Implement this trait on a type you would like to roll for.

Required methods

fn roll(max: Self) -> Self

Loading content...

Implementations on Foreign Types

impl Rollable for u8[src]

impl Rollable for u16[src]

impl Rollable for u32[src]

impl Rollable for u64[src]

impl Rollable for u128[src]

impl Rollable for usize[src]

Loading content...

Implementors

Loading content...