| 1 | use serderust-analyzer cargo serde 1.0.228 crate/::{Deserializerust-analyzer cargo serde_core 1.0.228 de/Deserialize#, Serializerust-analyzer cargo serde_core 1.0.228 ser/Serialize#}; |
| 2 | |
| 3 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:)] |
| 4 | pub struct ImVec2rust-analyzer cargo ron 0.12.0 ImVec2# { |
| 5 | pub xrust-analyzer cargo ron 0.12.0 ImVec2#x.: f32, |
| 6 | pub yrust-analyzer cargo ron 0.12.0 ImVec2#y.: f32, |
| 7 | } |
| 8 | |
| 9 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:)] |
| 10 | pub struct ImColorsSaverust-analyzer cargo ron 0.12.0 ImColorsSave# { |
| 11 | pub textrust-analyzer cargo ron 0.12.0 ImColorsSave#text.: f32, |
| 12 | } |
| 13 | |
| 14 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:)] |
| 15 | pub struct ImGuiStyleSaverust-analyzer cargo ron 0.12.0 ImGuiStyleSave# { |
| 16 | pub alpharust-analyzer cargo ron 0.12.0 ImGuiStyleSave#alpha.: f32, |
| 17 | pub window_paddingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#window_padding.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 18 | pub window_min_sizerust-analyzer cargo ron 0.12.0 ImGuiStyleSave#window_min_size.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 19 | pub window_roundingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#window_rounding.: f32, |
| 20 | pub window_title_alignrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#window_title_align.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 21 | pub child_window_roundingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#child_window_rounding.: f32, |
| 22 | pub frame_paddingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#frame_padding.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 23 | pub frame_roundingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#frame_rounding.: f32, |
| 24 | pub item_spacingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#item_spacing.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 25 | pub item_inner_spacingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#item_inner_spacing.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 26 | pub touch_extra_paddingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#touch_extra_padding.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 27 | pub indent_spacingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#indent_spacing.: f32, |
| 28 | pub columns_min_spacingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#columns_min_spacing.: f32, |
| 29 | pub scrollbar_sizerust-analyzer cargo ron 0.12.0 ImGuiStyleSave#scrollbar_size.: f32, |
| 30 | pub scrollbar_roundingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#scrollbar_rounding.: f32, |
| 31 | pub grab_min_sizerust-analyzer cargo ron 0.12.0 ImGuiStyleSave#grab_min_size.: f32, |
| 32 | pub grab_roundingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#grab_rounding.: f32, |
| 33 | pub button_text_alignrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#button_text_align.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 34 | pub display_window_paddingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#display_window_padding.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 35 | pub display_safe_area_paddingrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#display_safe_area_padding.: ImVec2rust-analyzer cargo ron 0.12.0 ImVec2#, |
| 36 | pub anti_aliased_linesrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#anti_aliased_lines.: bool, |
| 37 | pub anti_aliased_shapesrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#anti_aliased_shapes.: bool, |
| 38 | pub curve_tessellation_tolrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#curve_tessellation_tol.: f32, |
| 39 | pub colorsrust-analyzer cargo ron 0.12.0 ImGuiStyleSave#colors.: ImColorsSaverust-analyzer cargo ron 0.12.0 ImColorsSave#, |
| 40 | pub new_typerust-analyzer cargo ron 0.12.0 ImGuiStyleSave#new_type.: NewTyperust-analyzer cargo ron 0.12.0 NewType#, |
| 41 | } |
| 42 | |
| 43 | #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Serializerust-analyzer cargo serde_derive 1.0.228 Serialize:, Deserializerust-analyzer cargo serde_derive 1.0.228 Deserialize:)] |
| 44 | pub struct NewTyperust-analyzer cargo ron 0.12.0 NewType#(i32); |
| 45 | |
| 46 | const CONFIGrust-analyzer cargo ron 0.12.0 CONFIG.: &str = "( |
| 47 | alpha: 1.0, |
| 48 | window_padding: (x: 8, y: 8), |
| 49 | window_min_size: (x: 32, y: 32), |
| 50 | window_rounding: 9.0, |
| 51 | window_title_align: (x: 0.0, y: 0.5), |
| 52 | child_window_rounding: 0.0, |
| 53 | frame_padding: (x: 4, y: 3), |
| 54 | frame_rounding: 0.0, |
| 55 | item_spacing: (x: 8, y: 4), |
| 56 | item_inner_spacing: (x: 4, y: 4), |
| 57 | touch_extra_padding: (x: 0, y: 0), |
| 58 | indent_spacing: 21.0, |
| 59 | columns_min_spacing: 6.0, |
| 60 | scrollbar_size: 16, |
| 61 | scrollbar_rounding: 9, |
| 62 | grab_min_size: 10, |
| 63 | grab_rounding: 0, |
| 64 | button_text_align: (x: 0.5, y: 0.5), |
| 65 | display_window_padding: (x: 22, y: 22), |
| 66 | display_safe_area_padding: (x: 4, y: 4), |
| 67 | anti_aliased_lines: true, |
| 68 | anti_aliased_shapes: true, |
| 69 | curve_tessellation_tol: 1.25, |
| 70 | colors: (text: 4), |
| 71 | new_type: NewType( 1 ), |
| 72 | |
| 73 | ignored_field: \"Totally ignored, not causing a panic. Hopefully.\", |
| 74 | )"; |
| 75 | |
| 76 | #[testrust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/test:] |
| 77 | fn deserialize_big_structrust-analyzer cargo ron 0.12.0 deserialize_big_struct().() { |
| 78 | ronrust-analyzer cargo ron 0.12.0 crate/::derust-analyzer cargo ron 0.12.0 de/::from_strrust-analyzer cargo ron 0.12.0 de/from_str().::<ImGuiStyleSaverust-analyzer cargo ron 0.12.0 ImGuiStyleSave#>(CONFIGrust-analyzer cargo ron 0.12.0 CONFIG.).unwraprust-analyzer cargo core https://github.com/rust-lang/rust/library/core result/impl#[`Result<T, E>`]unwrap().(); |
| 79 | } |