Crate egui_struct
source ·Expand description
Crate consists of 4 traits (EguiStructImut
& EguiStruct
: EguiStructEq
+EguiStructClone
) and two derive macros (EguiStruct
to derive EguiStructImut
& EguiStruct
to derive the other three).
See demo
Macros§
- Generate EguiStructClone implementation based on Clone
- Generate EguiStructEq implementation based on PartialEq
- Wrapper for both impl_eeq! & impl_eclone!
Structs§
Enums§
- Config structure for mutable view of Numerics
- Config structure for mutable view of String
- Config structure for immutable view of many simple types like str, String & numerics
Traits§
- Trait, that allows generating mutable view of data (takes
&mut data
) - Similar to std
Clone
trait, but they respect#[eguis(skip)]
. - Similar to std
PartialEq
trait, but they respect#[eguis(skip)]
. - Trait, that allows generating immutable view of data (takes
&data
)
Derive Macros§
- Derive
EguiStruct
,EguiStructClone
&EguiStructEq
for struct/enum - Derive
EguiStructImut
for struct/enum