Struct git_config::values::Integer [−][src]
pub struct Integer {
pub value: i64,
pub suffix: Option<IntegerSuffix>,
}Expand description
Any value that can be interpreted as an integer.
This supports any numeric value that can fit in a i64, excluding the
suffix. The suffix is parsed separately from the value itself, so if you
wish to obtain the true value of the integer, you must account for the
suffix after fetching the value. IntegerSuffix provides
bitwise_offset to help with the math, but do be warned that if the value
is very large, you may run into overflows.
Fields
value: i64The value, without any suffix modification
suffix: Option<IntegerSuffix>A provided suffix, if any.
Implementations
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Integer
impl UnwindSafe for Integer
Blanket Implementations
Mutably borrows from an owned value. Read more