Build in operators between string and char.
This commit is contained in:
@@ -22,7 +22,6 @@ New features
|
||||
|
||||
* Functions are now allowed to have `Dynamic` arguments.
|
||||
* `#[rhai_fn(pure)]` attribute to mark a plugin function with `&mut` parameter as _pure_ so constants can be passed to it. Without it, passing a constant value into the `&mut` parameter will now raise an error.
|
||||
* Comparisons between `FLOAT`/[`Decimal`](https://crates.io/crates/rust_decimal) and `INT` are now built in.
|
||||
|
||||
Enhancements
|
||||
------------
|
||||
@@ -31,8 +30,11 @@ Enhancements
|
||||
* Error position in `eval` statements is now wrapped in an `EvalAltResult::ErrorInFunctionCall`.
|
||||
* `Position` now implements `Add` and `AddAssign`.
|
||||
* `Scope` now implements `IntoIterator`.
|
||||
* Strings now have the `-`/`-=` operators and the `remove` method to delete a sub-string/character.
|
||||
* Strings now have the `split_rev` method and variations of `split` with maximum number of segments.
|
||||
* Arrays now have the `split` method.
|
||||
* Comparisons between `FLOAT`/[`Decimal`](https://crates.io/crates/rust_decimal) and `INT` are now built in.
|
||||
* Comparisons between string and `char` are now built in.
|
||||
|
||||
|
||||
Version 0.19.12
|
||||
|
Reference in New Issue
Block a user