Crate cxx_qt_gen

Source
Expand description

The cxx-qt-gen crate provides methods for generated C++ and Rust code from a TokenStream.

Structs§

CxxQtFile
Representation of a CxxQtFile as Syn items
Error
Error returned when a Syn parser cannot parse the input tokens.
GeneratedCppBlocks
Representation of the generated C++ code for a group of QObjects
GeneratedRustBlocks
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
CxxQtItem
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.