pub struct CommitDiffLoaderOptions { /* private fields */ }
Expand description
Options for loading a commit with diff
Implementations§
Source§impl 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.
Sourcepub const fn ignore_blank_lines(self, ignore_blank_lines: bool) -> Self
pub const fn ignore_blank_lines(self, ignore_blank_lines: bool) -> Self
Set if to ignore blank lines.
Trait Implementations§
Source§impl Clone for CommitDiffLoaderOptions
impl Clone for CommitDiffLoaderOptions
Source§fn clone(&self) -> CommitDiffLoaderOptions
fn clone(&self) -> CommitDiffLoaderOptions
Returns a copy of the value. Read more
1.0.0 · 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 CommitDiffLoaderOptions
impl Debug for CommitDiffLoaderOptions
impl Copy for CommitDiffLoaderOptions
Auto Trait Implementations§
impl Freeze for CommitDiffLoaderOptions
impl RefUnwindSafe for CommitDiffLoaderOptions
impl Send for CommitDiffLoaderOptions
impl Sync for CommitDiffLoaderOptions
impl Unpin for CommitDiffLoaderOptions
impl UnwindSafe for CommitDiffLoaderOptions
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