pub struct UnifiedOptions {
pub old_name: String,
pub new_name: String,
pub context: usize,
}Expand description
Names written on the patch headers and the number of unchanged
context lines around each change. Git’s a/ and b/ prefixes are
added automatically by every formatter that prints them.
Fields§
§old_name: StringOriginal document label (Git’s a/ prefix is added automatically).
new_name: StringModified document label (Git’s b/ prefix is added automatically).
context: usizeNumber of unchanged lines around each change; defaults to three.
Trait Implementations§
Source§impl Clone for UnifiedOptions
impl Clone for UnifiedOptions
Source§fn clone(&self) -> UnifiedOptions
fn clone(&self) -> UnifiedOptions
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 UnifiedOptions
impl Debug for UnifiedOptions
Source§impl Default for UnifiedOptions
impl Default for UnifiedOptions
Source§fn default() -> UnifiedOptions
fn default() -> UnifiedOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for UnifiedOptions
impl Freeze for UnifiedOptions
impl Move for UnifiedOptions
impl RefUnwindSafe for UnifiedOptions
impl Send for UnifiedOptions
impl Sync for UnifiedOptions
impl Unpin for UnifiedOptions
impl UnsafeUnpin for UnifiedOptions
impl UnwindSafe for UnifiedOptions
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