Return this argument as a `Value`, if it is one, or `None` otherwise.
(&self)
| 246 | /// Return this argument as a `Value`, if it is one, or `None` |
| 247 | /// otherwise. |
| 248 | pub fn as_value(&self) -> Option<Value> { |
| 249 | match *self { |
| 250 | BlockArg::Value(v) => Some(v), |
| 251 | _ => None, |
| 252 | } |
| 253 | } |
| 254 | |
| 255 | /// Update the contained value, if any. |
| 256 | pub fn map_value<F: FnMut(Value) -> Value>(&self, mut f: F) -> Self { |
no outgoing calls
no test coverage detected