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
Sourcepub fn from(parser: &Parser) -> Result<GeneratedRustBlocks>
pub fn from(parser: &Parser) -> Result<GeneratedRustBlocks>
Create a GeneratedRustBlocks from the given Parser object
Auto Trait Implementations§
impl Freeze for GeneratedRustBlocks
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