-
main.rs
```rust
use rhai::Engine;
#[derive(Debug)]
pub struct TestStruct {
field: i64,
}
impl Clone for TestStruct {
fn clone(&self) -> Self {
println!("value cloned");
…
-
The documentation produced by [`document-features`](https://docs.rs/document-features) can be great to enhance the `rhai` feature flags documentation :book: !
-
I want to setup some global variable for the further use, like this:
```rust
use rhai::{Engine, Module, ImmutableString, Scope};
use rhai::module_resolvers::FileModuleResolver;
pub fn main() -…
-
I have a list of user defined statements which I compile into ASTs and which I then evaluate one by one passing the same scope that is modified by the statements:
```
[ "x = 5", "x = y + 3", ....…
-
Hi again.
I tried a simple Rhai code on Playground:
```rust
let values = [1, 2, 3, 4, 5];
fn template(a, b) {
`${a}-${b.name}`
}
values
.map(|v| `${template("simple", #{name: v…
-
if obj is a dynamic
and bytes is a blob in this dynamic.
other.data = obj.bytes will get below error!
Expression exceeds maximum complexity
-
Only run a manifest if it meets the criterion, which can match the context tree.
-
let mut x = rhai::Map::new();
x.insert("a".into(), Dynamic::from_blob(vec![1, 2, 3, 5, 6]));
println!("{:?}", x.get("a").map(|v| v.type_name()));
let mut buf = Vec::new();
x.serial…
-
Hi there,
I am not really sure what is happening here or if this is a bug, but I thought I would report it.
Consider this pretty nonsensical program:
```rust
use rhai::Engine;
fn main() {
…
-
A relatively minor thing, I'm opening this issue, in order to ask, if this is rather a bug to be fixed in The Rhai Book, or in this README.
The invalid link is `https://rhai.rs/book/engine/optimize…