Struct git2::DiffStatsFormat
source · [−]pub struct DiffStatsFormat { /* private fields */ }
Expand description
Formatting options for diff stats
Implementations
sourceimpl DiffStatsFormat
impl DiffStatsFormat
sourcepub const NONE: DiffStatsFormat
pub const NONE: DiffStatsFormat
Don’t generate any stats
sourcepub const FULL: DiffStatsFormat
pub const FULL: DiffStatsFormat
Equivalent of --stat
in git
sourcepub const SHORT: DiffStatsFormat
pub const SHORT: DiffStatsFormat
Equivalent of --shortstat
in git
sourcepub const NUMBER: DiffStatsFormat
pub const NUMBER: DiffStatsFormat
Equivalent of --numstat
in git
sourcepub const INCLUDE_SUMMARY: DiffStatsFormat
pub const INCLUDE_SUMMARY: DiffStatsFormat
Extended header information such as creations, renames and mode
changes, equivalent of --summary
in git
sourcepub const fn empty() -> DiffStatsFormat
pub const fn empty() -> DiffStatsFormat
Returns an empty set of flags
sourcepub const fn all() -> DiffStatsFormat
pub const fn all() -> DiffStatsFormat
Returns the set containing all flags.
sourcepub const fn bits(&self) -> git_diff_stats_format_t
pub const fn bits(&self) -> git_diff_stats_format_t
Returns the raw value of the flags currently stored.
sourcepub fn from_bits(bits: git_diff_stats_format_t) -> Option<DiffStatsFormat>
pub fn from_bits(bits: git_diff_stats_format_t) -> Option<DiffStatsFormat>
Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
sourcepub const fn from_bits_truncate(
bits: git_diff_stats_format_t
) -> DiffStatsFormat
pub const fn from_bits_truncate(
bits: git_diff_stats_format_t
) -> DiffStatsFormat
Convert from underlying bit representation, dropping any bits that do not correspond to flags.
sourcepub const unsafe fn from_bits_unchecked(
bits: git_diff_stats_format_t
) -> DiffStatsFormat
pub const unsafe fn from_bits_unchecked(
bits: git_diff_stats_format_t
) -> DiffStatsFormat
Convert from underlying bit representation, preserving all bits (even those not corresponding to a defined flag).
sourcepub const fn intersects(&self, other: DiffStatsFormat) -> bool
pub const fn intersects(&self, other: DiffStatsFormat) -> bool
Returns true
if there are flags common to both self
and other
.
sourcepub const fn contains(&self, other: DiffStatsFormat) -> bool
pub const fn contains(&self, other: DiffStatsFormat) -> bool
Returns true
all of the flags in other
are contained within self
.
sourcepub fn insert(&mut self, other: DiffStatsFormat)
pub fn insert(&mut self, other: DiffStatsFormat)
Inserts the specified flags in-place.
sourcepub fn remove(&mut self, other: DiffStatsFormat)
pub fn remove(&mut self, other: DiffStatsFormat)
Removes the specified flags in-place.
sourcepub fn toggle(&mut self, other: DiffStatsFormat)
pub fn toggle(&mut self, other: DiffStatsFormat)
Toggles the specified flags in-place.
sourcepub fn set(&mut self, other: DiffStatsFormat, value: bool)
pub fn set(&mut self, other: DiffStatsFormat, value: bool)
Inserts or removes the specified flags depending on the passed value.
Trait Implementations
sourceimpl Binary for DiffStatsFormat
impl Binary for DiffStatsFormat
sourceimpl BitAnd<DiffStatsFormat> for DiffStatsFormat
impl BitAnd<DiffStatsFormat> for DiffStatsFormat
sourcefn bitand(self, other: DiffStatsFormat) -> DiffStatsFormat
fn bitand(self, other: DiffStatsFormat) -> DiffStatsFormat
Returns the intersection between the two sets of flags.
type Output = DiffStatsFormat
type Output = DiffStatsFormat
The resulting type after applying the &
operator.
sourceimpl BitAndAssign<DiffStatsFormat> for DiffStatsFormat
impl BitAndAssign<DiffStatsFormat> for DiffStatsFormat
sourcefn bitand_assign(&mut self, other: DiffStatsFormat)
fn bitand_assign(&mut self, other: DiffStatsFormat)
Disables all flags disabled in the set.
sourceimpl BitOr<DiffStatsFormat> for DiffStatsFormat
impl BitOr<DiffStatsFormat> for DiffStatsFormat
sourcefn bitor(self, other: DiffStatsFormat) -> DiffStatsFormat
fn bitor(self, other: DiffStatsFormat) -> DiffStatsFormat
Returns the union of the two sets of flags.
type Output = DiffStatsFormat
type Output = DiffStatsFormat
The resulting type after applying the |
operator.
sourceimpl BitOrAssign<DiffStatsFormat> for DiffStatsFormat
impl BitOrAssign<DiffStatsFormat> for DiffStatsFormat
sourcefn bitor_assign(&mut self, other: DiffStatsFormat)
fn bitor_assign(&mut self, other: DiffStatsFormat)
Adds the set of flags.
sourceimpl BitXor<DiffStatsFormat> for DiffStatsFormat
impl BitXor<DiffStatsFormat> for DiffStatsFormat
sourcefn bitxor(self, other: DiffStatsFormat) -> DiffStatsFormat
fn bitxor(self, other: DiffStatsFormat) -> DiffStatsFormat
Returns the left flags, but with all the right flags toggled.
type Output = DiffStatsFormat
type Output = DiffStatsFormat
The resulting type after applying the ^
operator.
sourceimpl BitXorAssign<DiffStatsFormat> for DiffStatsFormat
impl BitXorAssign<DiffStatsFormat> for DiffStatsFormat
sourcefn bitxor_assign(&mut self, other: DiffStatsFormat)
fn bitxor_assign(&mut self, other: DiffStatsFormat)
Toggles the set of flags.
sourceimpl Clone for DiffStatsFormat
impl Clone for DiffStatsFormat
sourcefn clone(&self) -> DiffStatsFormat
fn clone(&self) -> DiffStatsFormat
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for DiffStatsFormat
impl Debug for DiffStatsFormat
sourceimpl Extend<DiffStatsFormat> for DiffStatsFormat
impl Extend<DiffStatsFormat> for DiffStatsFormat
sourcefn extend<T: IntoIterator<Item = DiffStatsFormat>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = DiffStatsFormat>>(&mut self, iterator: T)
Extends a collection with the contents of an iterator. Read more
sourcefn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
extend_one
)Extends a collection with exactly one element.
sourcefn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
sourceimpl FromIterator<DiffStatsFormat> for DiffStatsFormat
impl FromIterator<DiffStatsFormat> for DiffStatsFormat
sourcefn from_iter<T: IntoIterator<Item = DiffStatsFormat>>(
iterator: T
) -> DiffStatsFormat
fn from_iter<T: IntoIterator<Item = DiffStatsFormat>>(
iterator: T
) -> DiffStatsFormat
Creates a value from an iterator. Read more
sourceimpl Hash for DiffStatsFormat
impl Hash for DiffStatsFormat
sourceimpl LowerHex for DiffStatsFormat
impl LowerHex for DiffStatsFormat
sourceimpl Not for DiffStatsFormat
impl Not for DiffStatsFormat
sourcefn not(self) -> DiffStatsFormat
fn not(self) -> DiffStatsFormat
Returns the complement of this set of flags.
type Output = DiffStatsFormat
type Output = DiffStatsFormat
The resulting type after applying the !
operator.
sourceimpl Octal for DiffStatsFormat
impl Octal for DiffStatsFormat
sourceimpl Ord for DiffStatsFormat
impl Ord for DiffStatsFormat
sourceimpl PartialEq<DiffStatsFormat> for DiffStatsFormat
impl PartialEq<DiffStatsFormat> for DiffStatsFormat
sourcefn eq(&self, other: &DiffStatsFormat) -> bool
fn eq(&self, other: &DiffStatsFormat) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &DiffStatsFormat) -> bool
fn ne(&self, other: &DiffStatsFormat) -> bool
This method tests for !=
.
sourceimpl PartialOrd<DiffStatsFormat> for DiffStatsFormat
impl PartialOrd<DiffStatsFormat> for DiffStatsFormat
sourcefn partial_cmp(&self, other: &DiffStatsFormat) -> Option<Ordering>
fn partial_cmp(&self, other: &DiffStatsFormat) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
sourceimpl Sub<DiffStatsFormat> for DiffStatsFormat
impl Sub<DiffStatsFormat> for DiffStatsFormat
sourcefn sub(self, other: DiffStatsFormat) -> DiffStatsFormat
fn sub(self, other: DiffStatsFormat) -> DiffStatsFormat
Returns the set difference of the two sets of flags.
type Output = DiffStatsFormat
type Output = DiffStatsFormat
The resulting type after applying the -
operator.
sourceimpl SubAssign<DiffStatsFormat> for DiffStatsFormat
impl SubAssign<DiffStatsFormat> for DiffStatsFormat
sourcefn sub_assign(&mut self, other: DiffStatsFormat)
fn sub_assign(&mut self, other: DiffStatsFormat)
Disables all flags enabled in the set.
sourceimpl UpperHex for DiffStatsFormat
impl UpperHex for DiffStatsFormat
impl Copy for DiffStatsFormat
impl Eq for DiffStatsFormat
impl StructuralEq for DiffStatsFormat
impl StructuralPartialEq for DiffStatsFormat
Auto Trait Implementations
impl RefUnwindSafe for DiffStatsFormat
impl Send for DiffStatsFormat
impl Sync for DiffStatsFormat
impl Unpin for DiffStatsFormat
impl UnwindSafe for DiffStatsFormat
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
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more