pub struct PatchContext {
pub recent_mean_error: f64,
pub strategy_weights: BTreeMap<String, f64>,
pub high_error_streak: u32,
}Expand description
Optional context the generator can use to make more targeted effects.
Fields§
§recent_mean_error: f64Recent mean prediction error (from case / cas).
strategy_weights: BTreeMap<String, f64>Strategy weights (name → weight).
high_error_streak: u32How many recent cases had high error.
Trait Implementations§
Source§impl Clone for PatchContext
impl Clone for PatchContext
Source§impl Debug for PatchContext
impl Debug for PatchContext
Auto Trait Implementations§
impl Forget for PatchContext
impl Freeze for PatchContext
impl Move for PatchContext
impl RefUnwindSafe for PatchContext
impl Send for PatchContext
impl Sync for PatchContext
impl Unpin for PatchContext
impl UnsafeUnpin for PatchContextwhere
*const LeafNode<String, f64> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, f64)>>: UnsafeUnpin,
impl UnwindSafe for PatchContext
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