pub struct Resource {
pub file: String,
pub name: String,
}Expand description
A file bundled as a resource, and its name in the image.
Fields§
§file: StringThe file.
name: StringThe name the program asks for it by.
Trait Implementations§
impl Eq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Forget for Resource
impl Freeze for Resource
impl Move for Resource
impl RefUnwindSafe for Resource
impl Send for Resourcewhere
RawVecInner: Send,
impl Sync for Resourcewhere
RawVecInner: Sync,
impl Unpin for Resource
impl UnsafeUnpin for Resource
impl UnwindSafe for Resourcewhere
RawVecInner: UnwindSafe,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.