pub struct QmlFile { /* private fields */ }Expand description
A QML file to be included in a QML module (e.g. by ways of super::QmlDirBuilder).
Implementations§
Source§impl QmlFile
impl QmlFile
Sourcepub fn singleton(self, singleton: bool) -> Self
pub fn singleton(self, singleton: bool) -> Self
Set whether the component inside this QML file is a singleton.
Sourcepub fn is_singleton(&self) -> bool
pub fn is_singleton(&self) -> bool
Returns whether the component inside this QML file is a singleton.
Sourcepub fn get_version(&self) -> Option<(usize, usize)>
pub fn get_version(&self) -> Option<(usize, usize)>
Returns the version assigned to the QML file, if any.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QmlFile
impl RefUnwindSafe for QmlFile
impl Send for QmlFile
impl Sync for QmlFile
impl Unpin for QmlFile
impl UnwindSafe for QmlFile
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)