(&mut self, name: &str)
| 240 | |
| 241 | impl Configurable for Builder { |
| 242 | fn enable(&mut self, name: &str) -> SetResult<()> { |
| 243 | use self::detail::Detail; |
| 244 | let (offset, detail) = self.lookup(name)?; |
| 245 | match detail { |
| 246 | Detail::Bool { bit } => { |
| 247 | self.set_bit(offset, bit, true); |
| 248 | Ok(()) |
| 249 | } |
| 250 | Detail::Preset => { |
| 251 | self.apply_preset(&self.template.presets[offset..]); |
| 252 | Ok(()) |
| 253 | } |
| 254 | _ => Err(SetError::BadType), |
| 255 | } |
| 256 | } |
| 257 | |
| 258 | fn set(&mut self, name: &str, value: &str) -> SetResult<()> { |
| 259 | use self::detail::Detail; |
nothing calls this directly
no test coverage detected