Trait rollz::Rollable[][src]

pub trait Rollable {
    fn roll() -> Self;
fn val(&self) -> u8; }

This is the trait that every die needs to implement to be… well… “rollable”, right?

Required methods

fn roll() -> Self[src]

Roll the die

fn val(&self) -> u8[src]

Get the value from the latest roll

Loading content...

Implementors

impl Rollable for D4[src]

impl Rollable for D6[src]

impl Rollable for D8[src]

impl Rollable for D10[src]

impl Rollable for D12[src]

impl Rollable for D20[src]

Loading content...