Update the contained value, if any.
(&self, mut f: F)
| 254 | |
| 255 | /// Update the contained value, if any. |
| 256 | pub fn map_value<F: FnMut(Value) -> Value>(&self, mut f: F) -> Self { |
| 257 | match *self { |
| 258 | BlockArg::Value(v) => BlockArg::Value(f(v)), |
| 259 | other => other, |
| 260 | } |
| 261 | } |
| 262 | } |
| 263 | |
| 264 | impl Display for BlockArg { |
no test coverage detected