pub struct NameGenerator { /* private fields */ }
Expand description
The generator for the names.
Implementations§
Source§impl NameGenerator
impl NameGenerator
Sourcepub fn generate_verbose(
&self,
rand_fn: impl FnMut() -> f64,
) -> (String, String, Vec<SyllableInfo>)
pub fn generate_verbose( &self, rand_fn: impl FnMut() -> f64, ) -> (String, String, Vec<SyllableInfo>)
Generate a name with detailed information of the syllables.
Random number generator is required as argument rand_fn
.
Auto Trait Implementations§
impl Freeze for NameGenerator
impl RefUnwindSafe for NameGenerator
impl Send for NameGenerator
impl Sync for NameGenerator
impl Unpin for NameGenerator
impl UnwindSafe for NameGenerator
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