Alex Orlenko
|
2ace892613
|
Rename string::String to LuaString
|
2026-01-29 18:45:41 +00:00 |
|
Alex Orlenko
|
d9c139b55f
|
Rust 2024
|
2026-01-29 10:33:28 +00:00 |
|
Alex Orlenko
|
77d7d5d6bd
|
Add initial Lua 5.5 support
|
2026-01-13 23:43:31 +00:00 |
|
Alex Orlenko
|
a3302afdc1
|
Deprecate Value::as_str and Value::as_string_lossy
These methods don't follow Rust naming convention, see
https://rust-lang.github.io/api-guidelines/naming.html#ad-hoc-conversions-follow-as_-to_-into_-conventions-c-conv
|
2025-07-01 22:35:40 +01:00 |
|
Alex Orlenko
|
cd4091f64d
|
Allow exhaustive match on Value.
It was not possible because `ValueRef` variant in `Value::Other` was private.
Closes #502 and #503
|
2024-12-10 23:37:19 +00:00 |
|
Alex Orlenko
|
2a8db87132
|
Update Value tests
|
2024-10-18 22:50:48 +01:00 |
|
Alex Orlenko
|
179c54f297
|
Remove generic from Table::equals and Value::equals
|
2024-10-16 16:11:48 +01:00 |
|
Alex Orlenko
|
ae4897ab2e
|
Add Value::is_error and Value::as_error helpers
|
2024-10-02 12:59:04 +01:00 |
|
Alex Orlenko
|
4b8c26e682
|
Invoke __tostring metamethod when calling Value::to_string() for Buffer type
|
2024-10-01 22:59:19 +01:00 |
|
Alex Orlenko
|
b4892c228c
|
Add rustfmt.toml
|
2024-07-31 13:42:37 +01:00 |
|
Alex Orlenko
|
98ca880f8a
|
Change Value::Error variant to store Box<Error> instead of Error.
This will help to reduce size of `Value` enum on the stack.
|
2024-07-31 13:42:34 +01:00 |
|
Alex Orlenko
|
3e479be4e5
|
Cosmetic changes for the Value conversions + add tests
|
2023-08-06 23:41:27 +01:00 |
|
Alex Orlenko
|
7dc6e4c132
|
Add Error::runtime() helper
|
2023-07-10 22:41:03 +01:00 |
|
Alex Orlenko
|
1f0e81c9a1
|
Add a dedicated type for Luau vector.
Refactor existing implementation and add 4-dimensional vectors support.
|
2023-06-20 13:30:42 +01:00 |
|
Alex Orlenko
|
b674d7906d
|
Include (known) userdata type to Value debug pretty-print
|
2023-05-28 01:12:42 +01:00 |
|
Alex Orlenko
|
4306e6e978
|
Add Value::to_string() method similar to luaL_tolstring.
It uses `__tostring` metamethod if set.
Closes #279
|
2023-05-27 01:29:08 +01:00 |
|
Alex Orlenko
|
d951cb503f
|
Add Value::NULL constant
|
2023-05-06 22:53:40 +01:00 |
|
Alex Orlenko
|
05eb20f9c6
|
Fix subtraction overflow when calculating index for MultiValue::get().
Return `None` instead of panic in debug mode.
Fixes #232
|
2022-12-15 21:10:31 +00:00 |
|
Alex Orlenko
|
bcf2cbea37
|
Add Value::to_pointer() function.
Closes #165 and #166.
|
2022-05-18 13:15:08 +01:00 |
|
Alex Orlenko
|
e26cec5db9
|
Drop 'feature(link_args)' (removed from nightly). Don't run tests for LuaJIT 2.0.5
|
2021-04-16 22:27:28 +01:00 |
|
Alex Orlenko
|
2fd6757f39
|
Add LuaJIT 2.0.5 stable support
|
2020-06-06 16:07:16 +01:00 |
|
Alex Orlenko
|
5eec0ef56b
|
Implement PartialEq trait for Value (and subtypes)
Add equals() method to compare values optionally invoking __eq.
|
2020-01-07 00:03:03 +00:00 |
|