Trait CxxQtType

Source
pub trait CxxQtType {
    type Rust;

    // Required methods
    fn rust(&self) -> &Self::Rust;
    fn rust_mut(self: Pin<&mut Self>) -> Pin<&mut Self::Rust>;
}
Expand description

This trait is automatically implemented for all QObject types generated by CXX-Qt. It provides information about the inner Rust struct that is wrapped by the QObject, as well as the methods that Cxx-Qt will generate for the QObject.

Required Associated Types§

Source

type Rust

The Rust type that this QObject is wrapping.

Required Methods§

Source

fn rust(&self) -> &Self::Rust

Retrieve an immutable reference to the Rust struct backing this C++ object

Source

fn rust_mut(self: Pin<&mut Self>) -> Pin<&mut Self::Rust>

Retrieve a mutable reference to the Rust struct backing this C++ object

Implementors§