Struct bones_asset::prelude::AssetLocRef  
source · 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 copy 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 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>
source§fn eq(&self, other: &AssetLocRef<'a>) -> bool
 
fn eq(&self, other: &AssetLocRef<'a>) -> bool
This method tests for 
self and other values to be equal, and is used
by ==.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§
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: Copy,
 
impl<T> CloneToUninit for Twhere
    T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
 
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
 
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
 
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
 
fn equivalent(&self, key: &K) -> bool
Compare self to 
key and return true if they are equal.