pub struct GenomeSaver;Expand description
Genome saver
Implementations§
Source§impl GenomeSaver
impl GenomeSaver
Sourcepub fn save_to_json(
cortical_areas: &HashMap<CorticalID, CorticalArea>,
brain_regions: &HashMap<String, (BrainRegion, Option<String>)>,
genome_id: Option<String>,
genome_title: Option<String>,
) -> Result<String, EvoError>
👎Deprecated: Use feagi_evolutionary::save_genome_to_json(RuntimeGenome) instead. This produces incomplete v2.1 format.
pub fn save_to_json( cortical_areas: &HashMap<CorticalID, CorticalArea>, brain_regions: &HashMap<String, (BrainRegion, Option<String>)>, genome_id: Option<String>, genome_title: Option<String>, ) -> Result<String, EvoError>
Save connectome to genome JSON
DEPRECATED: This method produces incomplete hierarchical format v2.1 without morphologies/physiology.
Use feagi_evolutionary::save_genome_to_json(RuntimeGenome) instead, which produces complete flat format v3.0.
This method is kept only for legacy tests. Production code MUST use the RuntimeGenome saver.
§Arguments
cortical_areas- Map of cortical areasbrain_regions- Map of brain regionsgenome_id- Optional genome ID (generates default if None)genome_title- Optional genome title
§Returns
JSON string of the genome (hierarchical v2.1, incomplete)
Auto Trait Implementations§
impl Freeze for GenomeSaver
impl RefUnwindSafe for GenomeSaver
impl Send for GenomeSaver
impl Sync for GenomeSaver
impl Unpin for GenomeSaver
impl UnwindSafe for GenomeSaver
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> 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 more