Trait cxx_qt::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 types which are marked as #[qobject]. It provides information about the type 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§