pub struct Organism {
pub id: String,
pub name: String,
pub nodes: Vec<MorphNode>,
pub connections: Vec<MorphConnection>,
pub growth_pattern: GrowthPattern,
pub generation: u32,
pub fitness_score: f64,
pub age_cycles: u32,
pub seed: Seed,
pub metrics: Option<GrowthMetrics>,
pub metadata: HashMap<String, String>,
}Expand description
Organizmus — a teljes kinőtt struktúra
Fields§
§id: String§name: String§nodes: Vec<MorphNode>§connections: Vec<MorphConnection>§growth_pattern: GrowthPattern§generation: u32§fitness_score: f64§age_cycles: u32§seed: Seed§metrics: Option<GrowthMetrics>§metadata: HashMap<String, String>Implementations§
Source§impl Organism
impl Organism
pub fn new(id: &str, name: &str, seed: Seed, pattern: GrowthPattern) -> Self
Sourcepub fn calculate_metrics(&mut self) -> GrowthMetrics
pub fn calculate_metrics(&mut self) -> GrowthMetrics
Statisztikák számítása
Sourcepub fn age_one_cycle(&mut self)
pub fn age_one_cycle(&mut self)
Életkor növelése
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Organism
impl RefUnwindSafe for Organism
impl Send for Organism
impl Sync for Organism
impl Unpin for Organism
impl UnsafeUnpin for Organism
impl UnwindSafe for Organism
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.