Enum git2::RebaseOperationType[][src]

pub enum RebaseOperationType {
    Pick,
    Reword,
    Edit,
    Squash,
    Fixup,
    Exec,
}
Expand description

A rebase operation

Describes a single instruction/operation to be performed during the rebase.

Variants

Pick
Expand description

The given commit is to be cherry-picked. The client should commit the changes and continue if there are no conflicts.

Reword
Expand description

The given commit is to be cherry-picked, but the client should prompt the user to provide an updated commit message.

Edit
Expand description

The given commit is to be cherry-picked, but the client should stop to allow the user to edit the changes before committing them.

Squash
Expand description

The given commit is to be squashed into the previous commit. The commit message will be merged with the previous message.

Fixup
Expand description

The given commit is to be squashed into the previous commit. The commit message from this commit will be discarded.

Exec
Expand description

No commit will be cherry-picked. The client should run the given command and (if successful) continue.

Implementations

impl RebaseOperationType[src]

pub fn from_raw(raw: git_rebase_operation_t) -> Option<RebaseOperationType>[src]

Convert from the int into an enum. Returns None if invalid.

Trait Implementations

impl Debug for RebaseOperationType[src]

fn fmt(&self, f: &mut Formatter<'_>) -> Result[src]

Formats the value using the given formatter. Read more

impl PartialEq<RebaseOperationType> for RebaseOperationType[src]

fn eq(&self, other: &RebaseOperationType) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests for !=.

impl StructuralPartialEq for RebaseOperationType[src]

Auto Trait Implementations

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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.

pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.