pub struct Decoded {
pub plan: Vec<OpId>,
pub cost: u64,
pub reaches_goal: bool,
pub inspected: usize,
pub unsatisfied_goals: usize,
}Expand description
The result of simulating a chain.
Fields§
§plan: Vec<OpId>The executed operators, up to and including the one that reached the goal.
cost: u64The cost of plan.
reaches_goal: boolWhether plan reaches the goal.
inspected: usizeHow many genes were looked at before decoding stopped (the goal, the end of the chain,
or the first inapplicable gene under Decoding::Strict).
unsatisfied_goals: usizeThe number of goal facts that do not hold in the final state.
Trait Implementations§
impl Eq for Decoded
impl StructuralPartialEq for Decoded
Auto Trait Implementations§
impl Forget for Decoded
impl Freeze for Decoded
impl Move for Decoded
impl RefUnwindSafe for Decoded
impl Send for Decoded
impl Sync for Decoded
impl Unpin for Decoded
impl UnsafeUnpin for Decoded
impl UnwindSafe for Decoded
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