Struct git::CommitDiffLoaderOptions
source · [−]pub struct CommitDiffLoaderOptions { /* private fields */ }Expand description
Options for loading a commit with diff
Implementations
sourceimpl CommitDiffLoaderOptions
impl CommitDiffLoaderOptions
sourcepub const fn context_lines(self, context_lines: u32) -> Self
pub const fn context_lines(self, context_lines: u32) -> Self
Set the number of context lines.
sourcepub const fn interhunk_context(self, interhunk_context: u32) -> Self
pub const fn interhunk_context(self, interhunk_context: u32) -> Self
Set the number of interhunk lines.
sourcepub const fn ignore_whitespace(self, ignore_whitespace: bool) -> Self
pub const fn ignore_whitespace(self, ignore_whitespace: bool) -> Self
Set if to ignore whitespace.
sourcepub const fn ignore_whitespace_change(
self,
ignore_whitespace_change: bool
) -> Self
pub const fn ignore_whitespace_change(
self,
ignore_whitespace_change: bool
) -> Self
Set if to ignore changes in whitespace.
Trait Implementations
sourceimpl Clone for CommitDiffLoaderOptions
impl Clone for CommitDiffLoaderOptions
sourcefn clone(&self) -> CommitDiffLoaderOptions
fn clone(&self) -> CommitDiffLoaderOptions
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl Debug for CommitDiffLoaderOptions
impl Debug for CommitDiffLoaderOptions
impl Copy for CommitDiffLoaderOptions
Auto Trait Implementations
impl RefUnwindSafe for CommitDiffLoaderOptions
impl Send for CommitDiffLoaderOptions
impl Sync for CommitDiffLoaderOptions
impl Unpin for CommitDiffLoaderOptions
impl UnwindSafe for CommitDiffLoaderOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more