pub struct LinguisticGenome {
pub phoneme_inventory: PhonemeInventory,
pub syllable_patterns: Vec<SyllableStructure>,
pub prosody: ProsodicSystem,
pub morphology_type: MorphologyType,
pub word_order: WordOrder,
pub seed: u64,
}
Expand description
The complete linguistic genome - all parameters needed to generate consistent output.
Fields§
§phoneme_inventory: PhonemeInventory
The phoneme inventory (available sounds)
syllable_patterns: Vec<SyllableStructure>
Allowed syllable patterns
prosody: ProsodicSystem
Prosodic system (stress, tone)
morphology_type: MorphologyType
Morphological type
word_order: WordOrder
Word order
seed: u64
Generation seed for determinism
Implementations§
Source§impl LinguisticGenome
impl LinguisticGenome
Sourcepub fn from_culture(
culture: CulturalProfile,
geography: Geography,
seed: u64,
) -> Self
pub fn from_culture( culture: CulturalProfile, geography: Geography, seed: u64, ) -> Self
Generate a genome from cultural parameters and geography.
Trait Implementations§
Source§impl Clone for LinguisticGenome
impl Clone for LinguisticGenome
Source§fn clone(&self) -> LinguisticGenome
fn clone(&self) -> LinguisticGenome
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for LinguisticGenome
impl RefUnwindSafe for LinguisticGenome
impl Send for LinguisticGenome
impl Sync for LinguisticGenome
impl Unpin for LinguisticGenome
impl UnwindSafe for LinguisticGenome
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