Ergonomic struct API for Rust #329
Labels
exp: high
Achievable by investing significant time and effort, potentially through collaboration
pri: low
An issue with no impact to quality, performance, or functionality
type: feat
New feature or request
Currently, it looks like this when marshalling Mun
struct
s to Rust:We want to make these actions more ergonomic, safe and (potentially) faster by creating strongly typed Rust structs, e.g.:
This would allow us to simplify the previous code sample, e.g. as follows:
Apart from making programming with Mun simpler, this would allow us to auto-generate functions for verifying the validity of a struct's fields upon Runtime start-up instead of always needing to check validity when you marshal a field.
The text was updated successfully, but these errors were encountered: