Struct bones_asset::AssetLoc
source · pub struct AssetLoc {
pub path: PathBuf,
pub pack: Option<String>,
}
Expand description
Contains that path to an asset, and the pack_dir that it was loaded from.
A pack of None
means that it was loaded from the core pack.
Fields§
§path: PathBuf
The path to the asset in it’s pack.
pack: Option<String>
The pack_dir of the pack that the asset is in.
Implementations§
source§impl AssetLoc
impl AssetLoc
sourcepub fn as_ref(&self) -> AssetLocRef<'_>
pub fn as_ref(&self) -> AssetLocRef<'_>
Borrow as an AssetLocRef
.
Trait Implementations§
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 PartialEq for AssetLoc
impl PartialEq for AssetLoc
impl Eq for AssetLoc
impl StructuralPartialEq for AssetLoc
Auto Trait Implementations§
impl Freeze for AssetLoc
impl RefUnwindSafe for AssetLoc
impl Send for AssetLoc
impl Sync for AssetLoc
impl Unpin for AssetLoc
impl UnwindSafe for AssetLoc
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§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.