[go: up one dir, main page]

Type Definition gix::config::tree::keys::Boolean

source ·
pub type Boolean = Any<Boolean>;
Expand description

A key that represents a boolean value.

Implementations§

source§

impl Boolean

source

pub const fn new_boolean( name: &'static str, section: &'static dyn Section ) -> Self

Create a new instance.

source

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().