pub struct MutationCtx<'a> {
pub llm: &'a dyn LlmClient,
pub rng: &'a mut ChaCha8Rng,
}Expand description
Ambient context passed to every mutator invocation.
Fields§
§llm: &'a dyn LlmClientLLM used by LlmRewriteMutator; other mutators ignore it.
rng: &'a mut ChaCha8RngSeeded RNG. Pass the same seed for reproducible mutations in tests.
Auto Trait Implementations§
impl<'a> Freeze for MutationCtx<'a>
impl<'a> !RefUnwindSafe for MutationCtx<'a>
impl<'a> Send for MutationCtx<'a>
impl<'a> Sync for MutationCtx<'a>
impl<'a> Unpin for MutationCtx<'a>
impl<'a> UnsafeUnpin for MutationCtx<'a>
impl<'a> !UnwindSafe for MutationCtx<'a>
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