pub struct DeltaResult {
pub common_prefix_lines: usize,
pub common_suffix_lines: usize,
pub removed_lines: usize,
pub added_lines: usize,
pub changed_content: String,
pub cached_prefix_tokens: usize,
pub total_delta_tokens: usize,
}Fields§
§common_prefix_lines: usize§common_suffix_lines: usize§removed_lines: usize§added_lines: usize§changed_content: String§cached_prefix_tokens: usize§total_delta_tokens: usizeImplementations§
Source§impl DeltaResult
impl DeltaResult
pub fn savings_ratio(&self) -> f64
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DeltaResult
impl RefUnwindSafe for DeltaResult
impl Send for DeltaResult
impl Sync for DeltaResult
impl Unpin for DeltaResult
impl UnsafeUnpin for DeltaResult
impl UnwindSafe for DeltaResult
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