pub struct ApplyOptions<'cb> { /* private fields */ }
Expand description
Options to specify when applying a diff
Implementations§
Source§impl<'cb> ApplyOptions<'cb>
impl<'cb> ApplyOptions<'cb>
Sourcepub fn check(&mut self, check: bool) -> &mut Self
pub fn check(&mut self, check: bool) -> &mut Self
Don’t actually make changes, just test that the patch applies.
Sourcepub fn hunk_callback<F>(&mut self, cb: F) -> &mut Self
pub fn hunk_callback<F>(&mut self, cb: F) -> &mut Self
When applying a patch, callback that will be made per hunk.
Sourcepub fn delta_callback<F>(&mut self, cb: F) -> &mut Self
pub fn delta_callback<F>(&mut self, cb: F) -> &mut Self
When applying a patch, callback that will be made per delta (file).
Sourcepub unsafe fn raw(&mut self) -> *const git_apply_options
pub unsafe fn raw(&mut self) -> *const git_apply_options
Pointer to a raw git_stash_apply_options
Auto Trait Implementations§
impl<'cb> Freeze for ApplyOptions<'cb>
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§
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more