pub struct JsonDriver;Implementations§
Source§impl JsonDriver
impl JsonDriver
Trait Implementations§
Source§impl Default for JsonDriver
impl Default for JsonDriver
Source§impl SutureDriver for JsonDriver
impl SutureDriver for JsonDriver
Source§fn supported_extensions(&self) -> &[&str]
fn supported_extensions(&self) -> &[&str]
File extensions this driver handles (e.g.,
[".json", ".jsonl"]).Source§fn diff(
&self,
base_content: Option<&str>,
new_content: &str,
) -> Result<Vec<SemanticChange>, DriverError>
fn diff( &self, base_content: Option<&str>, new_content: &str, ) -> Result<Vec<SemanticChange>, DriverError>
Parse a file and produce a semantic diff between it and an optional base. Read more
Source§fn format_diff(
&self,
base_content: Option<&str>,
new_content: &str,
) -> Result<String, DriverError>
fn format_diff( &self, base_content: Option<&str>, new_content: &str, ) -> Result<String, DriverError>
Produce a human-readable diff string between two versions of a file. Read more
Auto Trait Implementations§
impl Freeze for JsonDriver
impl RefUnwindSafe for JsonDriver
impl Send for JsonDriver
impl Sync for JsonDriver
impl Unpin for JsonDriver
impl UnsafeUnpin for JsonDriver
impl UnwindSafe for JsonDriver
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