Expand description
The cxx-qt-gen crate provides methods for generated C++ and Rust code from a TokenStream.
Structs§
- CxxQt
File - Representation of a CxxQtFile as Syn items
- Error
- Error returned when a Syn parser cannot parse the input tokens.
- Generated
CppBlocks - Representation of the generated C++ code for a group of QObjects
- Generated
Rust Blocks - Representation of the generated Rust code for a QObject
- Parser
- A struct representing a module block with CXX-Qt relevant syn::Item’s parsed into ParsedCxxQtData, to be used later to generate Rust & C++ code.
Enums§
- CppFragment
- A fragment of C++ code
- CxxQt
Item - Representation of either a Syn Item, a CXX module, or a CXX-Qt module
Functions§
- parse_
qt_ file - Parse the given std::path::Path into a CxxQtFile
- write_
cpp - For a given GeneratedCppBlocks write this into a C++ header and source pair
- write_
rust - For a given GeneratedRustBlocks write this into a Rust TokenStream
Type Aliases§
- Result
- The result of a Syn parser.