Update README.md
This commit is contained in:
parent
906ee14138
commit
3e70879eae
@ -7,7 +7,7 @@ Rhai's current feature set:
|
|||||||
* Easy integration with Rust functions and data types
|
* Easy integration with Rust functions and data types
|
||||||
* Fairly efficient (1 mil iterations in 0.75 sec on my 5 year old laptop)
|
* Fairly efficient (1 mil iterations in 0.75 sec on my 5 year old laptop)
|
||||||
* Low compile-time overhead (~4 secs for debug build, ~11 secs for release build)
|
* Low compile-time overhead (~4 secs for debug build, ~11 secs for release build)
|
||||||
* Simple, easy-to-use language features
|
* Easy-to-use language based on JS+Rust
|
||||||
* Support for overloaded functions
|
* Support for overloaded functions
|
||||||
* No additional dependencies
|
* No additional dependencies
|
||||||
* No unsafe code
|
* No unsafe code
|
||||||
@ -112,6 +112,8 @@ fn main() {
|
|||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
You can also see in this example how you can register multiple functions (or in this case multiple instances of the same function) to the same name in script. The scripting engine will handle looking up the correct function during function resolution.
|
||||||
|
|
||||||
# Example 4: Working with custom types and methods
|
# Example 4: Working with custom types and methods
|
||||||
|
|
||||||
Here's an more complete example of working with Rust. First the example, then we'll break it into parts:
|
Here's an more complete example of working with Rust. First the example, then we'll break it into parts:
|
||||||
|
Loading…
Reference in New Issue
Block a user