Extract as array if possible
(&self)
| 235 | |
| 236 | /// Extract as array if possible |
| 237 | pub fn as_array(&self) -> Option<&Vec<Value>> { |
| 238 | match self { |
| 239 | Value::Array(arr) => Some(arr), |
| 240 | _ => None, |
| 241 | } |
| 242 | } |
| 243 | |
| 244 | /// Extract as list (supports both List and Array variants) |
| 245 | pub fn as_list(&self) -> Option<&Vec<Value>> { |
no outgoing calls