Enum git_config::values::IntegerSuffix
source · [−]pub enum IntegerSuffix {
Kibi,
Mebi,
Gibi,
}
Expand description
Integer prefixes that are supported by git-config
.
These values are base-2 unit of measurements, not the base-10 variants.
Variants
Kibi
Mebi
Gibi
Implementations
sourceimpl IntegerSuffix
impl IntegerSuffix
sourcepub const fn bitwise_offset(self) -> usize
pub const fn bitwise_offset(self) -> usize
Returns the number of bits that the suffix shifts left by.
Trait Implementations
sourceimpl Clone for IntegerSuffix
impl Clone for IntegerSuffix
sourcefn clone(&self) -> IntegerSuffix
fn clone(&self) -> IntegerSuffix
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 IntegerSuffix
impl Debug for IntegerSuffix
sourceimpl Display for IntegerSuffix
impl Display for IntegerSuffix
sourceimpl FromStr for IntegerSuffix
impl FromStr for IntegerSuffix
sourceimpl Hash for IntegerSuffix
impl Hash for IntegerSuffix
sourceimpl Ord for IntegerSuffix
impl Ord for IntegerSuffix
sourceimpl PartialEq<IntegerSuffix> for IntegerSuffix
impl PartialEq<IntegerSuffix> for IntegerSuffix
sourceimpl PartialOrd<IntegerSuffix> for IntegerSuffix
impl PartialOrd<IntegerSuffix> for IntegerSuffix
sourcefn partial_cmp(&self, other: &IntegerSuffix) -> Option<Ordering>
fn partial_cmp(&self, other: &IntegerSuffix) -> 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
impl Copy for IntegerSuffix
impl Eq for IntegerSuffix
impl StructuralEq for IntegerSuffix
impl StructuralPartialEq for IntegerSuffix
Auto Trait Implementations
impl RefUnwindSafe for IntegerSuffix
impl Send for IntegerSuffix
impl Sync for IntegerSuffix
impl Unpin for IntegerSuffix
impl UnwindSafe for IntegerSuffix
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more