Struct git2::Sort [] [src]

pub struct Sort {
    // some fields omitted
}

Orderings that may be specified for Revwalk iteration.

Methods

impl Sort

fn empty() -> Sort

Returns an empty set of flags.

fn all() -> Sort

Returns the set containing all flags.

fn bits(&self) -> u32

Returns the raw value of the flags currently stored.

fn from_bits(bits: u32) -> Option<Sort>

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

fn from_bits_truncate(bits: u32) -> Sort

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

fn is_empty(&self) -> bool

Returns true if no flags are currently stored.

fn is_all(&self) -> bool

Returns true if all flags are currently set.

fn intersects(&self, other: Sort) -> bool

Returns true if there are flags common to both self and other.

fn contains(&self, other: Sort) -> bool

Returns true all of the flags in other are contained within self.

fn insert(&mut self, other: Sort)

Inserts the specified flags in-place.

fn remove(&mut self, other: Sort)

Removes the specified flags in-place.

fn toggle(&mut self, other: Sort)

Toggles the specified flags in-place.

Trait Implementations

impl BitOr for Sort

type Output = Sort

fn bitor(self, other: Sort) -> Sort

impl BitXor for Sort

type Output = Sort

fn bitxor(self, other: Sort) -> Sort

impl BitAnd for Sort

type Output = Sort

fn bitand(self, other: Sort) -> Sort

impl Sub for Sort

type Output = Sort

fn sub(self, other: Sort) -> Sort

impl Not for Sort

type Output = Sort

fn not(self) -> Sort

Derived Implementations

impl Hash for Sort

fn hash<__H: Hasher>(&self, __arg_0: &mut __H)

fn hash_slice<H>(data: &[Self], state: &mut H) where H: Hasher

impl Ord for Sort

fn cmp(&self, __arg_0: &Sort) -> Ordering

impl PartialOrd for Sort

fn partial_cmp(&self, __arg_0: &Sort) -> Option<Ordering>

fn lt(&self, __arg_0: &Sort) -> bool

fn le(&self, __arg_0: &Sort) -> bool

fn gt(&self, __arg_0: &Sort) -> bool

fn ge(&self, __arg_0: &Sort) -> bool

impl Clone for Sort

fn clone(&self) -> Sort

fn clone_from(&mut self, source: &Self)

impl Eq for Sort

impl PartialEq for Sort

fn eq(&self, __arg_0: &Sort) -> bool

fn ne(&self, __arg_0: &Sort) -> bool

impl Copy for Sort