pub struct AssetLocRef<'a> {
pub path: &'a Path,
pub pack: Option<&'a str>,
}Expand description
A borrowed version of AssetLoc.
Fields§
§path: &'a PathThe path to the asset in it’s pack.
pack: Option<&'a str>The pack_dir of the pack that the asset is in.
Implementations§
Trait Implementations§
Source§impl<'a> Clone for AssetLocRef<'a>
impl<'a> Clone for AssetLocRef<'a>
Source§fn clone(&self) -> AssetLocRef<'a>
fn clone(&self) -> AssetLocRef<'a>
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<'a> Debug for AssetLocRef<'a>
impl<'a> Debug for AssetLocRef<'a>
Source§impl From<&AssetLocRef<'_>> for AssetLoc
impl From<&AssetLocRef<'_>> for AssetLoc
Source§fn from(value: &AssetLocRef<'_>) -> Self
fn from(value: &AssetLocRef<'_>) -> Self
Converts to this type from the input type.
Source§impl<'a> Hash for AssetLocRef<'a>
impl<'a> Hash for AssetLocRef<'a>
Source§impl<'a> PartialEq for AssetLocRef<'a>
impl<'a> PartialEq for AssetLocRef<'a>
impl<'a> Copy for AssetLocRef<'a>
impl<'a> Eq for AssetLocRef<'a>
impl<'a> StructuralPartialEq for AssetLocRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for AssetLocRef<'a>
impl<'a> RefUnwindSafe for AssetLocRef<'a>
impl<'a> Send for AssetLocRef<'a>
impl<'a> Sync for AssetLocRef<'a>
impl<'a> Unpin for AssetLocRef<'a>
impl<'a> UnwindSafe for AssetLocRef<'a>
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)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§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.