[−][src]Struct rut_lib::Rut
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,