[][src]Struct git2::RevertOptions

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

Options to specify when reverting

Implementations

impl<'cb> RevertOptions<'cb>[src]

pub fn new() -> RevertOptions<'cb>[src]

Creates a default set of revert options

pub fn mainline(&mut self, mainline: u32) -> &mut Self[src]

Set the mainline value

For merge commits, the "mainline" is treated as the parent.

pub fn checkout_builder(&mut self, cb: CheckoutBuilder<'cb>) -> &mut Self[src]

Set the checkout builder

pub fn merge_opts(&mut self, merge_opts: MergeOptions) -> &mut Self[src]

Set the merge options

pub fn raw(&mut self) -> git_revert_options[src]

Obtain the raw struct

Auto Trait Implementations

impl<'cb> !RefUnwindSafe for RevertOptions<'cb>

impl<'cb> !Send for RevertOptions<'cb>

impl<'cb> !Sync for RevertOptions<'cb>

impl<'cb> Unpin for RevertOptions<'cb>

impl<'cb> !UnwindSafe for RevertOptions<'cb>

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.