Enum git_config::values::Boolean [−][src]
pub enum Boolean<'a> {
True(TrueVariant<'a>),
False(Cow<'a, str>),
}Expand description
Any value that can be interpreted as a boolean.
Note that while values can effectively be any byte string, the git-config
documentation has a strict subset of values that may be interpreted as a
boolean value, all of which are ASCII and thus UTF-8 representable.
Consequently, variants hold strs rather than [[u8]]s.
Variants
Tuple Fields of True
0: TrueVariant<'a>Implementations
Generates a byte representation of the value. This should be used when non-UTF-8 sequences are present or a UTF-8 representation can’t be guaranteed.
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<'a> RefUnwindSafe for Boolean<'a>
impl<'a> UnwindSafe for Boolean<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more