[][src]Struct rut_lib::Rut

pub struct Rut { /* fields omitted */ }

Methods

impl Rut[src]

pub fn from(input: &str) -> Result<Rut, Error>[src]

Create a Rut from a input String This is useful when you want to parse to String or check if is a valid input Rut.

The Input must be a valid RUT format.

pub fn from_number(number: u32) -> Result<Rut, Error>[src]

Create a Rut from a input Number

The input must be between in a Range value.

pub fn randomize() -> Rut[src]

Generate a Rut from scratch with a random number.

pub fn to_format(&self, format: Format) -> String[src]

Take a Rut and Prettify the output to String This use the Format enum as input.

pub fn number(&self) -> &u32[src]

Return the number output

pub fn dv(&self) -> &char[src]

Return the DV output

Trait Implementations

impl Debug for Rut[src]

impl Display for Rut[src]

Auto Trait Implementations

impl RefUnwindSafe for Rut

impl Send for Rut

impl Sync for Rut

impl Unpin for Rut

impl UnwindSafe for Rut

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> ToString for T where
    T: Display + ?Sized
[src]

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