pub struct AsciiDigit(/* private fields */);
Expand description
Generates an ASCII decimal digit (0-9).
use rand::{Rng, SeedableRng};
let mut rng = rand_chacha::ChaCha8Rng::seed_from_u64(0);
use faker_rand::util::AsciiDigit;
assert_eq!("7", rng.gen::<AsciiDigit>().to_string());
Trait Implementations§
Source§impl Display for AsciiDigit
impl Display for AsciiDigit
Source§impl Distribution<AsciiDigit> for Standard
impl Distribution<AsciiDigit> for Standard
Auto Trait Implementations§
impl Freeze for AsciiDigit
impl RefUnwindSafe for AsciiDigit
impl Send for AsciiDigit
impl Sync for AsciiDigit
impl Unpin for AsciiDigit
impl UnwindSafe for AsciiDigit
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