pub struct Rut { /* private fields */ }
Implementations§
Source§impl Rut
impl Rut
Sourcepub fn from(input: &str) -> Result<Rut, Error>
pub fn from(input: &str) -> Result<Rut, Error>
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.
Sourcepub fn from_number(number: u32) -> Result<Rut, Error>
pub fn from_number(number: u32) -> Result<Rut, Error>
Create a Rut
from a input Number
The input must be between in a Range value.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Rut
impl RefUnwindSafe for Rut
impl Send for Rut
impl Sync for Rut
impl Unpin for Rut
impl UnwindSafe for Rut
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more