Struct cxx_qt_gen::Parser

source ·
pub struct Parser {
    pub passthrough_module: ItemMod,
    pub cxx_qt_data: ParsedCxxQtData,
    pub cxx_file_stem: String,
}
Expand description

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.

syn::Item’s that are not handled specially by CXX-Qt are passed through for CXX to process.

Fields

passthrough_module: ItemMod

The module which unknown (eg CXX) blocks are stored into

cxx_qt_data: ParsedCxxQtData

Any CXX-Qt data that needs generation later

cxx_file_stem: String

The stem of the file that the CXX headers for this module will be generated into

Implementations

Constructs a Parser object from a given syn::ItemMod block

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.