Struct cxx_qt_gen::GeneratedRustBlocks
source · pub struct GeneratedRustBlocks {
pub cxx_mod: ItemMod,
pub cxx_mod_contents: Vec<Item>,
pub namespace: String,
pub fragments: Vec<GeneratedRustFragment>,
}
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
namespace: String
Ident of the namespace of the QObject
fragments: Vec<GeneratedRustFragment>
Rust fragments
Implementations§
source§impl GeneratedRustBlocks
impl GeneratedRustBlocks
pub fn from(parser: &Parser) -> Result<GeneratedRustBlocks>
Auto Trait Implementations§
impl RefUnwindSafe for GeneratedRustBlocks
impl !Send for GeneratedRustBlocks
impl !Sync for GeneratedRustBlocks
impl Unpin for GeneratedRustBlocks
impl UnwindSafe for GeneratedRustBlocks
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more