pub enum LineageUpdate {
Mutate {
family: FamilyId,
parent: PhenotypeId,
child: PhenotypeId,
},
Crossover {
families: (FamilyId, FamilyId),
parents: (PhenotypeId, PhenotypeId),
child: PhenotypeId,
},
Replace {
reason: &'static str,
old: (FamilyId, PhenotypeId),
new: (FamilyId, PhenotypeId),
},
Invalid,
}Variants§
Trait Implementations§
Source§impl Clone for LineageUpdate
impl Clone for LineageUpdate
Source§fn clone(&self) -> LineageUpdate
fn clone(&self) -> LineageUpdate
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 moreSource§impl Debug for LineageUpdate
impl Debug for LineageUpdate
Source§impl From<(&'static str, (FamilyId, PhenotypeId), (FamilyId, PhenotypeId))> for LineageUpdate
impl From<(&'static str, (FamilyId, PhenotypeId), (FamilyId, PhenotypeId))> for LineageUpdate
Source§fn from(
(reason, (old_family, old_id), (new_family, new_id)): (&'static str, (FamilyId, PhenotypeId), (FamilyId, PhenotypeId)),
) -> Self
fn from( (reason, (old_family, old_id), (new_family, new_id)): (&'static str, (FamilyId, PhenotypeId), (FamilyId, PhenotypeId)), ) -> Self
Converts to this type from the input type.
Source§impl From<((FamilyId, FamilyId), (PhenotypeId, PhenotypeId), PhenotypeId)> for LineageUpdate
impl From<((FamilyId, FamilyId), (PhenotypeId, PhenotypeId), PhenotypeId)> for LineageUpdate
Source§fn from(
(parent_lineages, parent_versions, child_id): ((FamilyId, FamilyId), (PhenotypeId, PhenotypeId), PhenotypeId),
) -> Self
fn from( (parent_lineages, parent_versions, child_id): ((FamilyId, FamilyId), (PhenotypeId, PhenotypeId), PhenotypeId), ) -> Self
Converts to this type from the input type.
Source§impl From<((FamilyId, PhenotypeId), PhenotypeId)> for LineageUpdate
impl From<((FamilyId, PhenotypeId), PhenotypeId)> for LineageUpdate
Source§fn from((parent_id, child_id): ((FamilyId, PhenotypeId), PhenotypeId)) -> Self
fn from((parent_id, child_id): ((FamilyId, PhenotypeId), PhenotypeId)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LineageUpdate
impl RefUnwindSafe for LineageUpdate
impl Send for LineageUpdate
impl Sync for LineageUpdate
impl Unpin for LineageUpdate
impl UnsafeUnpin for LineageUpdate
impl UnwindSafe for LineageUpdate
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