Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Are there any docs for how it's implemented?


A brief introduction to the design is here: https://interact-rs.github.io/interact/book/index.html#desig...:

> Using two traits, Access and Deser, Interact exposes types as trait objects, similarly to the Any trait, but with a functionality of reflection. The Access trait allows to probe the fields of structs and enums and modify them. It also allows to iterate arrays, vectors, and maps. It also allows to safely punch through Rc, Arc, and Mutex. The traits can be derived using #[derive(Interact)].

> At the prompt side, predictive parsing is used for providing full auto-complete and hinting, while constructing access paths, and while constructing values used in field assignments and function calls.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: