pub struct NamePart { /* private fields */ }
Implementations§
source§impl NamePart
impl NamePart
pub fn name(&self) -> &str
pub fn generate(&self, ws: &mut WorkingSet, rng: &mut impl Rng)
pub fn learn(&mut self, sample_set: &SampleSet) -> Result<(), LearnError>
pub fn validate(&self) -> Result<(), ValidationError>
pub fn new_markov<S: AsRef<str>>( name: &str, format_rules: &[FormattingRule], initial_tokens: &[S], lrs: bool, lrm: bool, lre: bool, rlf: bool ) -> NamePart
pub fn new_cfgrammar<S: AsRef<str>>( name: &str, format_rules: &[FormattingRule], initial_subtokens: &[S], rlf: bool, ral: bool ) -> NamePart
pub fn new_wordlist(name: &str, format_rules: &[FormattingRule]) -> NamePart
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for NamePart
impl Send for NamePart
impl Sync for NamePart
impl Unpin for NamePart
impl UnwindSafe for NamePart
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