pub struct TextOptions {
pub unified: UnifiedOptions,
pub format: TextFormat,
pub accept_changes: bool,
pub window: Option<usize>,
}Expand description
Review presentation options for diff_text_view and
diff_documents_view; the raw unified patch APIs above
(diff_text, diff_documents) stay unclipped.
Fields§
§unified: UnifiedOptionsSnapshot labels and surrounding unchanged lines.
format: TextFormatOutput presentation; defaults to GitHub unified hunks.
accept_changes: boolAccept the inputs’ tracked changes before comparison (always true
when format == TextFormat::Word).
window: Option<usize>Per-line Unicode scalar window; None keeps complete lines. The
window counts characters only, never delimiters, so every mark a
line opens it closes.
Trait Implementations§
Source§impl Clone for TextOptions
impl Clone for TextOptions
Source§fn clone(&self) -> TextOptions
fn clone(&self) -> TextOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TextOptions
impl Debug for TextOptions
Source§impl Default for TextOptions
impl Default for TextOptions
Source§fn default() -> TextOptions
fn default() -> TextOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for TextOptions
impl Freeze for TextOptions
impl Move for TextOptions
impl RefUnwindSafe for TextOptions
impl Send for TextOptions
impl Sync for TextOptions
impl Unpin for TextOptions
impl UnsafeUnpin for TextOptions
impl UnwindSafe for TextOptions
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