pub struct Digits { /* private fields */ }Implementations§
Source§impl Digits
impl Digits
pub fn new(max_digit: u8) -> Digits
pub fn len(&self) -> usize
pub fn append(&mut self, digit: u8) -> Result<(), DigitsError>
pub fn from_string( digits_string: &str, max_digit: u8, convert_rule: fn(char) -> Option<u8>, ) -> Result<Digits, DigitsError>
pub fn to_string( &self, convert_rule: fn(u8) -> Option<char>, ) -> Result<String, DigitsError>
pub fn to_string_complex( &self, convert_rule: fn(u8) -> Option<String>, ) -> Option<String>
pub fn cast_to_string(&self) -> String
pub fn from_u64(value: u64, max_digit: u8) -> Digits
pub fn get_u8_array(&self) -> &Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Digits
impl RefUnwindSafe for Digits
impl Send for Digits
impl Sync for Digits
impl Unpin for Digits
impl UnsafeUnpin for Digits
impl UnwindSafe for Digits
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