pub struct EditCtx<'a> {
pub source: &'a str,
pub workload_path: &'a Path,
}Expand description
Transactional edit context. The mutate closure receives
a mutable EditCtx and returns the post-edit source
string. The driver verifies that string parses cleanly
before committing.
Fields§
§source: &'a strOriginal on-disk source bytes.
workload_path: &'a PathPath to the workload file (for diagnostics).
Auto Trait Implementations§
impl<'a> Freeze for EditCtx<'a>
impl<'a> RefUnwindSafe for EditCtx<'a>
impl<'a> Send for EditCtx<'a>
impl<'a> Sync for EditCtx<'a>
impl<'a> Unpin for EditCtx<'a>
impl<'a> UnsafeUnpin for EditCtx<'a>
impl<'a> UnwindSafe for EditCtx<'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