pub struct PatchTool;Expand description
Patch tool for applying unified diff patches
Implementations§
Source§impl PatchTool
impl PatchTool
Sourcepub async fn apply_patch_with_timeout(
input: &PatchInput,
) -> Result<PatchOutput, ToolError>
pub async fn apply_patch_with_timeout( input: &PatchInput, ) -> Result<PatchOutput, ToolError>
Apply a patch to a file with timeout enforcement (1 second)
Sourcepub fn apply_patch(input: &PatchInput) -> Result<PatchOutput, ToolError>
pub fn apply_patch(input: &PatchInput) -> Result<PatchOutput, ToolError>
Apply a patch to a file (synchronous version)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PatchTool
impl RefUnwindSafe for PatchTool
impl Send for PatchTool
impl Sync for PatchTool
impl Unpin for PatchTool
impl UnwindSafe for PatchTool
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