pub struct PathReference<M> {
pub path: PathBuf,
pub meta: M,
}
Expand description
A reference to a resource on disk.
Fields§
§path: PathBuf
The fully qualified path to the resource, often a shader source file or a texture.
meta: M
Meta information about the resource.
Trait Implementations§
Source§impl<M: Clone> Clone for PathReference<M>
impl<M: Clone> Clone for PathReference<M>
Source§fn clone(&self) -> PathReference<M>
fn clone(&self) -> PathReference<M>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<M> Freeze for PathReference<M>where
M: Freeze,
impl<M> RefUnwindSafe for PathReference<M>where
M: RefUnwindSafe,
impl<M> Send for PathReference<M>where
M: Send,
impl<M> Sync for PathReference<M>where
M: Sync,
impl<M> Unpin for PathReference<M>where
M: Unpin,
impl<M> UnwindSafe for PathReference<M>where
M: 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