Method
add_bool
(
&mut self,
name: &'static str,
description: &'static str,
comment: &'static str,
default: bool,
)
Source from the content-addressed store, hash-verified
| 189 | } |
| 190 | |
| 191 | pub fn add_bool( |
| 192 | &mut self, |
| 193 | name: &'static str, |
| 194 | description: &'static str, |
| 195 | comment: &'static str, |
| 196 | default: bool, |
| 197 | ) -> BoolSettingIndex { |
| 198 | self.add_setting( |
| 199 | name, |
| 200 | description, |
| 201 | comment, |
| 202 | ProtoSpecificSetting::Bool(default), |
| 203 | ); |
| 204 | BoolSettingIndex(self.settings.len() - 1) |
| 205 | } |
| 206 | |
| 207 | pub fn add_enum( |
| 208 | &mut self, |
Tested by
no test coverage detected