pub struct TraceEntry {
pub stage: PipelineStage,
pub source_location: Option<String>,
pub decision_type: DecisionType,
pub chosen: String,
pub alternatives: Vec<String>,
pub confidence: f64,
pub reason: String,
}Expand description
A single decision recorded during transpilation.
Each entry captures what was decided, what alternatives existed, and why the chosen option was selected.
Fields§
§stage: PipelineStageWhich pipeline stage made this decision
source_location: Option<String>Source location in the C code (e.g., “line 10, column 5”)
decision_type: DecisionTypeWhat type of decision was made
chosen: StringThe option that was chosen
alternatives: Vec<String>Alternative options that were considered but not chosen
confidence: f64Confidence level (0.0 to 1.0)
reason: StringHuman-readable reason for the decision
Trait Implementations§
Source§impl Clone for TraceEntry
impl Clone for TraceEntry
Source§fn clone(&self) -> TraceEntry
fn clone(&self) -> TraceEntry
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 TraceEntry
impl Debug for TraceEntry
Source§impl<'de> Deserialize<'de> for TraceEntry
impl<'de> Deserialize<'de> for TraceEntry
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 TraceEntry
impl RefUnwindSafe for TraceEntry
impl Send for TraceEntry
impl Sync for TraceEntry
impl Unpin for TraceEntry
impl UnsafeUnpin for TraceEntry
impl UnwindSafe for TraceEntry
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