pub struct QResources { /* private fields */ }Expand description
A helper for building Qt resource collection files
Implementations§
Source§impl QResources
impl QResources
Sourcepub fn resource<T: Into<QResource>>(self, resource: T) -> Self
pub fn resource<T: Into<QResource>>(self, resource: T) -> Self
Add a QResource to the QResources
Sourcepub fn resources<T: Into<QResource>>(
self,
resources: impl IntoIterator<Item = T>,
) -> Self
pub fn resources<T: Into<QResource>>( self, resources: impl IntoIterator<Item = T>, ) -> Self
Add multiple QResource to the QResources
Sourcepub fn get_resources_mut(&mut self) -> impl Iterator<Item = &mut QResource>
pub fn get_resources_mut(&mut self) -> impl Iterator<Item = &mut QResource>
Get the resources as mutable references
Sourcepub fn get_resources(&self) -> impl Iterator<Item = &QResource>
pub fn get_resources(&self) -> impl Iterator<Item = &QResource>
Get the resources
Trait Implementations§
Source§impl Clone for QResources
impl Clone for QResources
Source§fn clone(&self) -> QResources
fn clone(&self) -> QResources
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for QResources
impl Debug for QResources
Source§impl Default for QResources
impl Default for QResources
Source§impl<T: IntoIterator<Item = impl Into<QResourceFile>>> From<T> for QResources
impl<T: IntoIterator<Item = impl Into<QResourceFile>>> From<T> for QResources
Auto Trait Implementations§
impl Freeze for QResources
impl RefUnwindSafe for QResources
impl Send for QResources
impl Sync for QResources
impl Unpin for QResources
impl UnwindSafe for QResources
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)