pub struct Options {
pub diff_algorithm: Algorithm,
pub range: Option<Range<u32>>,
pub since: Option<Time>,
}
Expand description
Options to be passed to file()
.
Fields§
§diff_algorithm: Algorithm
The algorithm to use for diffing.
range: Option<Range<u32>>
A 1-based inclusive range, in order to mirror git
’s behaviour. Some(20..40)
represents
21 lines, spanning from line 20 up to and including line 40. This will be converted to
19..40
internally as the algorithm uses 0-based ranges that are exclusive at the end.
since: Option<Time>
Don’t consider commits before the given date.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
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