Shared variant of Dynamic type; All read/write access operations in Dynamic backed by Read/Write lock guards; new shared() script function
This commit is contained in:
@@ -333,7 +333,7 @@ impl<'a> Scope<'a> {
|
||||
.iter()
|
||||
.rev()
|
||||
.find(|Entry { name: key, .. }| name == key)
|
||||
.and_then(|Entry { value, .. }| value.downcast_ref::<T>().cloned())
|
||||
.and_then(|Entry { value, .. }| value.read::<T>())
|
||||
}
|
||||
|
||||
/// Update the value of the named entry.
|
||||
|
Reference in New Issue
Block a user