You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This includes Wrapping<T>, Saturating<T>, NonZero<T>, NonZero* etc. I think parsing to and from numbers in FromLua and IntoLua without retaining these types' special property should be valid for most use cases, since it's crossing language boundaries.
I run into missing NonZero (and NonZero*) quite often in my current project. The behavior described by mintlu8 would be more than good enough.
The suggestion made by cheesycod doesn't work for me as I use quite a few macros and other wrapping traits/types to offer new niecities and reduce boilerplate, but those rely a lot on IntoLua/FromLua so the serde ext doesn't work for me.
Right now, I made a macro_rules! macro that makes it easy to create mlua compatible wrapper for NonZeru* types but having proper support would be a lot nicer.
Activity
cheesycod commentedon Oct 29, 2024
@mintlu8 is this not possible already with mlua's serde ext
lenscas commentedon Oct 30, 2026
I run into missing NonZero (and NonZero*) quite often in my current project. The behavior described by mintlu8 would be more than good enough.
The suggestion made by cheesycod doesn't work for me as I use quite a few macros and other wrapping traits/types to offer new niecities and reduce boilerplate, but those rely a lot on IntoLua/FromLua so the serde ext doesn't work for me.
Right now, I made a macro_rules! macro that makes it easy to create mlua compatible wrapper for NonZeru* types but having proper support would be a lot nicer.