pub struct LineageEvent {
pub generation: usize,
pub kind: String,
pub parent_id: u64,
pub child_id: u64,
pub diff: Vec<DiffEntry>,
pub parent_utility: f64,
pub child_utility: f64,
}Expand description
One recorded evolution/edit step, for the lineage display.
Fields§
§generation: usizeGeneration counter at the time of the event (increments per
refine/refine_from call).
kind: String"refine" or "edit".
parent_id: u64Parent candidate id.
child_id: u64Child candidate id.
diff: Vec<DiffEntry>What changed, in trace-address terms.
parent_utility: f64Parent posterior-mean utility at event time (0 with no posterior).
child_utility: f64Child posterior-mean utility at event time.
Trait Implementations§
Source§impl Clone for LineageEvent
impl Clone for LineageEvent
Source§fn clone(&self) -> LineageEvent
fn clone(&self) -> LineageEvent
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 LineageEvent
impl Debug for LineageEvent
Source§impl<'de> Deserialize<'de> for LineageEvent
impl<'de> Deserialize<'de> for LineageEvent
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
Auto Trait Implementations§
impl Freeze for LineageEvent
impl RefUnwindSafe for LineageEvent
impl Send for LineageEvent
impl Sync for LineageEvent
impl Unpin for LineageEvent
impl UnsafeUnpin for LineageEvent
impl UnwindSafe for LineageEvent
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