egui_inspect
This crate expose macros and traits to generate boilerplate code for structs inspection and edition.
Basic usage would be
# use *;
You can add attributes to structures field. Currently supported attributes are defined in the struct AttributeArgs of egui_inspect_derive
Here is a list of supported attributes. It might not be up to date, it's better to check directly AttributeArgs declaration
hide(bool): If true, doesn't generate code for the given fieldno_edit(bool): If true, never call mut function for the given field (May be overridden by other params)slider(bool): If true, use a slider when inspecting numbers (mutonly)min(f32): Min value for inspecting numbers (mutonly)max(f32): Max value for inspecting numbers (mutonly)multiline(bool): If true, display the text on multiple lines (mutonly)custom_func(string): Use custom function for non-mut inspect (Evaluate the string as a function path)custom_func_mut(string): Use custom function for mut inspect (Evaluate the string as a function path)