pub struct QmlModule<'a, A, B>{
pub uri: &'a str,
pub version_major: usize,
pub version_minor: usize,
pub rust_files: &'a [A],
pub qml_files: &'a [B],
pub qrc_files: &'a [A],
}Expand description
Metadata for registering a QML module with crate::CxxQtBuilder::qml_module
Fields§
§uri: &'a strThe URI of the QML module
version_major: usizeThe major version of the QML module
version_minor: usizeThe minor version of the QML module
rust_files: &'a [A]The .rs files containing a #[cxx_qt::bridge] module with at least one QObject type annotated with #[qml_element]
qml_files: &'a [B].qml files included in the module
qrc_files: &'a [A]Other QRC resources (such as images) included in the module
Trait Implementations§
Auto Trait Implementations§
impl<'a, A, B> Freeze for QmlModule<'a, A, B>
impl<'a, A, B> RefUnwindSafe for QmlModule<'a, A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
impl<'a, A, B> Send for QmlModule<'a, A, B>
impl<'a, A, B> Sync for QmlModule<'a, A, B>
impl<'a, A, B> Unpin for QmlModule<'a, A, B>
impl<'a, A, B> UnwindSafe for QmlModule<'a, A, B>where
A: RefUnwindSafe,
B: RefUnwindSafe,
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more