pub type Boolean = Any<Boolean>;Expand description
A key that represents a boolean value.
Implementations§
source§impl Boolean
impl Boolean
sourcepub const fn new_boolean(
name: &'static str,
section: &'static dyn Section
) -> Self
pub const fn new_boolean( name: &'static str, section: &'static dyn Section ) -> Self
Create a new instance.
sourcepub fn enrich_error(
&'static self,
value: Result<bool, Error>
) -> Result<bool, Error>
pub fn enrich_error( &'static self, value: Result<bool, Error> ) -> Result<bool, Error>
Process the value into a result with an improved error message.
value is expected to be provided by git_config::File::boolean().