Struct git2::StashApplyOptions
source · [−]pub struct StashApplyOptions<'cb> { /* private fields */ }
Expand description
Stash application options structure
Implementations
sourceimpl<'cb> StashApplyOptions<'cb>
impl<'cb> StashApplyOptions<'cb>
sourcepub fn new() -> StashApplyOptions<'cb>
pub fn new() -> StashApplyOptions<'cb>
Creates a default set of merge options.
sourcepub fn reinstantiate_index(&mut self) -> &mut StashApplyOptions<'cb>
pub fn reinstantiate_index(&mut self) -> &mut StashApplyOptions<'cb>
Set stash application flag to GIT_STASH_APPLY_REINSTATE_INDEX
sourcepub fn checkout_options(
&mut self,
opts: CheckoutBuilder<'cb>
) -> &mut StashApplyOptions<'cb>
pub fn checkout_options(
&mut self,
opts: CheckoutBuilder<'cb>
) -> &mut StashApplyOptions<'cb>
Options to use when writing files to the working directory
sourcepub fn progress_cb<C>(&mut self, callback: C) -> &mut StashApplyOptions<'cb> where
C: FnMut(StashApplyProgress) -> bool + 'cb,
pub fn progress_cb<C>(&mut self, callback: C) -> &mut StashApplyOptions<'cb> where
C: FnMut(StashApplyProgress) -> bool + 'cb,
Optional callback to notify the consumer of application progress.
Return true
to continue processing, or false
to
abort the stash application.
sourcepub fn raw(&mut self) -> &git_stash_apply_options
pub fn raw(&mut self) -> &git_stash_apply_options
Pointer to a raw git_stash_apply_options
Trait Implementations
Auto Trait Implementations
impl<'cb> !RefUnwindSafe for StashApplyOptions<'cb>
impl<'cb> !Send for StashApplyOptions<'cb>
impl<'cb> !Sync for StashApplyOptions<'cb>
impl<'cb> Unpin for StashApplyOptions<'cb>
impl<'cb> !UnwindSafe for StashApplyOptions<'cb>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more