pub struct VisualDiffRenderer;Implementations§
Source§impl VisualDiffRenderer
impl VisualDiffRenderer
Sourcepub fn render(
before_path: &Path,
after_path: &Path,
change_type: &ChangeType,
kind: &ArtifactKind,
staging_dir: &Path,
) -> Result<VisualDiffOutput>
pub fn render( before_path: &Path, after_path: &Path, change_type: &ChangeType, kind: &ArtifactKind, staging_dir: &Path, ) -> Result<VisualDiffOutput>
Render a visual diff placeholder file in staging_dir/diffs/.
This writes a text placeholder since image processing requires external
dependencies not present in the workspace. The file path is returned so
ta draft view can display it for the reviewer.
Auto Trait Implementations§
impl Freeze for VisualDiffRenderer
impl RefUnwindSafe for VisualDiffRenderer
impl Send for VisualDiffRenderer
impl Sync for VisualDiffRenderer
impl Unpin for VisualDiffRenderer
impl UnsafeUnpin for VisualDiffRenderer
impl UnwindSafe for VisualDiffRenderer
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