pub struct QResource { /* private fields */ }Expand description
A <qresource> block within a QResources
Implementations§
Source§impl QResource
impl QResource
Sourcepub fn file<T: Into<QResourceFile>>(self, file: T) -> Self
pub fn file<T: Into<QResourceFile>>(self, file: T) -> Self
Add a QResourceFile to the QResource
Sourcepub fn files<T: Into<QResourceFile>>(
self,
files: impl IntoIterator<Item = T>,
) -> Self
pub fn files<T: Into<QResourceFile>>( self, files: impl IntoIterator<Item = T>, ) -> Self
Add multiple QResourceFile to the QResource
Sourcepub fn get_files(&self) -> impl Iterator<Item = &QResourceFile>
pub fn get_files(&self) -> impl Iterator<Item = &QResourceFile>
Get the files inside of this resource
Sourcepub fn language(self, language: impl Into<String>) -> Self
pub fn language(self, language: impl Into<String>) -> Self
Specify a language for the <qresource>
Sourcepub fn get_prefix(&self) -> Option<&str>
pub fn get_prefix(&self) -> Option<&str>
Get the prefix, if set
Trait Implementations§
Auto Trait Implementations§
impl Freeze for QResource
impl RefUnwindSafe for QResource
impl Send for QResource
impl Sync for QResource
impl Unpin for QResource
impl UnwindSafe for QResource
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)