[][src]Struct git2::ApplyOptions

pub struct ApplyOptions<'cb> { /* fields omitted */ }

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]

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]

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>[src]

impl<'cb> !Send for ApplyOptions<'cb>[src]

impl<'cb> !Sync for ApplyOptions<'cb>[src]

impl<'cb> Unpin for ApplyOptions<'cb>[src]

impl<'cb> !UnwindSafe for ApplyOptions<'cb>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.