[−][src]Struct rfyl::DiceRolls
The result of rolling some dice.
Methods
impl DiceRolls
[src]
pub fn get_result(&self) -> i32
[src]
Returns an i32 as the result of the formula including any calculational operators.
pub fn get_sum_of_rolls(&self) -> i32
[src]
Returns an i32 as the simple sum of all rolls.
pub fn get_rolls_string(&self) -> String
[src]
Returns a formatted String showing the dice and the rolled results.
pub fn get_formula_string_as_rpn(&self) -> String
[src]
Returns a postfix formatted String showing the formula, with all dice replaced with their rolled values.
pub fn get_formula_string_as_infix(&self) -> String
[src]
Returns an infix formatted String showing the formula, with all dice replaced with their rolled values.
pub fn get_rolls_formula_string_as_rpn(&self) -> String
[src]
Returns a postfix formatted String showing the formula with the original dice notation instead of the rolled result.
pub fn get_rolls_formula_string_as_infix(&self) -> String
[src]
Returns a infix formatted String showing the formula with the original dice notation instead of the rolled result.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,