Struct namegen::NamePart[][src]

pub struct NamePart { /* fields omitted */ }

Implementations

impl NamePart[src]

pub fn name(&self) -> &str[src]

pub fn generate(&self, ws: &mut WorkingSet, rng: &mut impl Rng)[src]

pub fn learn(&mut self, sample_set: &SampleSet) -> Result<(), LearnError>[src]

pub fn validate(&self) -> Result<(), ValidationError>[src]

pub fn new_markov<S: AsRef<str>>(
    name: &str,
    format_rules: &[FormattingRule],
    initial_tokens: &[S],
    lrs: bool,
    lrm: bool,
    lre: bool,
    rlf: bool
) -> NamePart
[src]

pub fn new_cfgrammar<S: AsRef<str>>(
    name: &str,
    format_rules: &[FormattingRule],
    initial_subtokens: &[S],
    rlf: bool,
    ral: bool
) -> NamePart
[src]

pub fn new_wordlist(name: &str, format_rules: &[FormattingRule]) -> NamePart[src]

Trait Implementations

impl Clone for NamePart[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,