pub struct AssetUUID(/* private fields */);Expand description
A globally unique, persistent identifier for a logical asset.
This UUID represents the “idea” of an asset, completely decoupled from its physical file path. It is the primary key used by the Virtual File System (VFS) to track and retrieve asset metadata.
By using a stable UUID, assets can be moved, renamed, or have their source data modified without breaking references to them in scenes or other assets.
Implementations§
Trait Implementations§
Source§impl<'de, Context> BorrowDecode<'de, Context> for AssetUUID
impl<'de, Context> BorrowDecode<'de, Context> for AssetUUID
Source§fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>(
decoder: &mut D,
) -> Result<Self, DecodeError>
fn borrow_decode<D: BorrowDecoder<'de, Context = Context>>( decoder: &mut D, ) -> Result<Self, DecodeError>
Attempt to decode this type with the given BorrowDecode.
Source§impl<'de> Deserialize<'de> for AssetUUID
impl<'de> Deserialize<'de> for AssetUUID
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for AssetUUID
impl Ord for AssetUUID
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialOrd for AssetUUID
impl PartialOrd for AssetUUID
impl Copy for AssetUUID
impl Eq for AssetUUID
impl StructuralPartialEq for AssetUUID
Auto Trait Implementations§
impl Freeze for AssetUUID
impl RefUnwindSafe for AssetUUID
impl Send for AssetUUID
impl Sync for AssetUUID
impl Unpin for AssetUUID
impl UnsafeUnpin for AssetUUID
impl UnwindSafe for AssetUUID
Blanket Implementations§
Source§impl<T> AppLifecycle for Twhere
T: ?Sized,
impl<T> AppLifecycle for Twhere
T: ?Sized,
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,
§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
§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.