Docs.rs
dicexp-1.2.0
dicexp 1.2.0
Permalink
Docs.rs crate page
MPL-2.0
Links
Homepage
Repository
crates.io
Source
Owners
DrPlantabyte
Dependencies
bytemuck ^1.23
normal
clap ^4.5
normal
optional
rand ^0.9.2
normal
serde ^1.0
normal
optional
serde_derive ^1.0
normal
optional
serde_json ^1.0
dev
Versions
76.19%
of the crate is documented
Platform
i686-pc-windows-msvc
i686-unknown-linux-gnu
x86_64-apple-darwin
x86_64-pc-windows-msvc
x86_64-unknown-linux-gnu
Feature flags
docs.rs
About docs.rs
Badges
Builds
Metadata
Shorthand URLs
Download
Rustdoc JSON
Build queue
Privacy policy
Rust
Rust website
The Book
Standard Library API Reference
Rust by Example
The Cargo Guide
Clippy Documentation
dicexp
1.2.0
All Items
Crate Items
Structs
Functions
Crate
dicexp
Copy item path
Source
Structs
§
DiceBag
The DiceBag struct is use to evaluate RPG dice notation expressions (eg “2d6+3”)
Dice
Roll
The result of rolling the provided dice expression, including the average and minimum and maximum possible results.
Syntax
Error
Error returns when a
DiceBag
fails to interpret or evaluate a dice expression
Functions
§
new_
simple_
rng
Creates a new random number generator (RNG) from the provided seed using the default
rand crate
rand::rngs::StdRng
RNG, using the current system millisecond timestamp as the RNG seed
simple_
rng
Creates a new random number generator (RNG) from the provided seed using the default
rand crate
rand::rngs::StdRng
RNG