-
I am very new to rust, so maybe this is just me being a newbie.
I want to do something like this:
```rust
fn get(url: &str) {
// Some code to send a http GET to the given url
}
fn buil…
-
Is it possible to pass a function from rhai to rust for latter execution (or execution under certain circumstances)?
I need something like `setTimeout` in javascript.
-
## Request
Allow objects to have their own scope. Making it possible to handle entities with their own set of variables efficiently.
For example
`engine.register_object_scope(name: "Target", …
-
hello again,
```
let mut engine = Engine::new();
engine.register_type::();
engine.register_fn("get", ContractStorage::get_segment);
engine.register_fn("set", ContractStorage::set_segment);
engin…
-
I searched docs and code but didn't find anything.
Is it possible to write Infinity as number? Currently i'm only able to do it by this math statement:
```
print(1.0 / 0.0)
```
outputs
```
…
-
1) Standard quotes are not turned into smart quotes inside the blocks even with the `mdbook` option turned on.
2) Also, it would be nice to be able to style the title text... in other words, speci…
-
```javascript
let Hostname = "172.17.0.2:8080";
let t = replace("https://HOST/-redux","HOST",Hostname);
print(Hostname);
let tt = "https://HOST/-redux".replace("HOST",Hostname);
print(type_of(tt)…
-
Afaik, they are not keywords according to https://rhai.rs/book/language/keywords.html
-
Afaik, they are not keywords according to https://rhai.rs/book/language/keywords.html
-
- my script code
```javascript
fn main{
push_item("some data");
}
```
- I define an array in scope,Execute the script to get the results
```rust
let mut scope = Scope::new();
scope.set_or_p…