fixed function calls, added array example
This commit is contained in:
parent
fe99fddc29
commit
cefff00db3
5 changed files with 81 additions and 11 deletions
|
@ -100,13 +100,6 @@ impl Value {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn as_object_mut(&mut self) -> Option<&mut HashMap<String, Value>> {
|
||||
match self {
|
||||
Self::Object(h) => Some(h),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
pub fn as_function(&self) -> Option<&Function> {
|
||||
match self {
|
||||
Self::Function(function) => Some(function),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue