pub struct ParentSnapshot {
pub genes: Vec<(String, String)>,
}Expand description
Compact, transitive-closure-safe snapshot of a parent chromosome’s
gene tuple. Stored inside Lineage::Crossover / Lineage::Mutation
instead of Arc<Chromosome> so the lineage tree of a long-running
scan is bounded by O(genes per chromosome) per ancestor instead
of O(full ancestry chain) — the earlier full-Chromosome arcs
transitively dragged the parent’s own Lineage field along, so
every grandchild kept its grandparents alive forever and a long
scan would OOM.
Fields§
§genes: Vec<(String, String)>Trait Implementations§
Source§impl Clone for ParentSnapshot
impl Clone for ParentSnapshot
Source§fn clone(&self) -> ParentSnapshot
fn clone(&self) -> ParentSnapshot
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ParentSnapshot
impl Debug for ParentSnapshot
Source§impl<'de> Deserialize<'de> for ParentSnapshot
impl<'de> Deserialize<'de> for ParentSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ParentSnapshot
impl PartialEq for ParentSnapshot
Source§fn eq(&self, other: &ParentSnapshot) -> bool
fn eq(&self, other: &ParentSnapshot) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ParentSnapshot
impl Serialize for ParentSnapshot
impl Eq for ParentSnapshot
impl StructuralPartialEq for ParentSnapshot
Auto Trait Implementations§
impl Freeze for ParentSnapshot
impl RefUnwindSafe for ParentSnapshot
impl Send for ParentSnapshot
impl Sync for ParentSnapshot
impl Unpin for ParentSnapshot
impl UnsafeUnpin for ParentSnapshot
impl UnwindSafe for ParentSnapshot
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.