[−][src]Struct git2::ApplyOptions
Options to specify when applying a diff
Implementations
impl<'cb> ApplyOptions<'cb>
[src]
pub fn new() -> Self
[src]
Creates a new set of empty options (zeroed).
pub fn check(&mut self, check: bool) -> &mut Self
[src]
Don't actually make changes, just test that the patch applies.
pub fn hunk_callback<F>(&mut self, cb: F) -> &mut Self where
F: FnMut(Option<DiffHunk<'_>>) -> bool + 'cb,
[src]
F: FnMut(Option<DiffHunk<'_>>) -> bool + 'cb,
When applying a patch, callback that will be made per hunk.
pub fn delta_callback<F>(&mut self, cb: F) -> &mut Self where
F: FnMut(Option<DiffDelta<'_>>) -> bool + 'cb,
[src]
F: FnMut(Option<DiffDelta<'_>>) -> bool + 'cb,
When applying a patch, callback that will be made per delta (file).
pub unsafe fn raw(&mut self) -> *const git_apply_options
[src]
Pointer to a raw git_stash_apply_options
Auto Trait Implementations
impl<'cb> !RefUnwindSafe for ApplyOptions<'cb>
impl<'cb> !Send for ApplyOptions<'cb>
impl<'cb> !Sync for ApplyOptions<'cb>
impl<'cb> Unpin for ApplyOptions<'cb>
impl<'cb> !UnwindSafe for ApplyOptions<'cb>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,