pub struct GeneratedRustBlocks {
    pub cxx_mod: ItemMod,
    pub cxx_mod_contents: Vec<Item>,
    pub cxx_qt_mod_contents: Vec<Item>,
    pub namespace: String,
    pub qobjects: Vec<GeneratedRustQObject>,
}
Expand description

Representation of the generated Rust code for a QObject

Fields

cxx_mod: ItemMod

Module for the CXX bridge with passthrough items

cxx_mod_contents: Vec<Item>

Any global extra items for the CXX bridge

cxx_qt_mod_contents: Vec<Item>

Any global passthrough items for the implementation

namespace: String

Ident of the namespace of the QObject

qobjects: Vec<GeneratedRustQObject>

Generated QObject blocks

Implementations

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.