pub struct DiffChatRenderer { /* private fields */ }
Implementations§
Source§impl DiffChatRenderer
impl DiffChatRenderer
pub fn new( show_line_numbers: bool, context_lines: usize, use_colors: bool, ) -> Self
pub fn render_file_change( &self, file_path: &Path, old_content: &str, new_content: &str, ) -> String
pub fn render_multiple_changes( &self, changes: Vec<(String, String, String)>, ) -> String
pub fn render_operation_summary( &self, operation: &str, files_affected: usize, success: bool, ) -> String
Auto Trait Implementations§
impl Freeze for DiffChatRenderer
impl RefUnwindSafe for DiffChatRenderer
impl Send for DiffChatRenderer
impl Sync for DiffChatRenderer
impl Unpin for DiffChatRenderer
impl UnwindSafe for DiffChatRenderer
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