pub enum CachedAssetType {
Native(u32),
Script(u128),
}Expand description
AssetType variant for the cache. Stores the script GUID directly so
the cache doesn’t depend on the in-memory script_types table — each
bake interns scripts fresh.
Variants§
Trait Implementations§
Source§impl<'__de, __Context> BorrowDecode<'__de, __Context> for CachedAssetType
impl<'__de, __Context> BorrowDecode<'__de, __Context> for CachedAssetType
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 Clone for CachedAssetType
impl Clone for CachedAssetType
Source§fn clone(&self) -> CachedAssetType
fn clone(&self) -> CachedAssetType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CachedAssetType
impl Debug for CachedAssetType
Source§impl<__Context> Decode<__Context> for CachedAssetType
impl<__Context> Decode<__Context> for CachedAssetType
Source§impl Encode for CachedAssetType
impl Encode for CachedAssetType
Source§impl PartialEq for CachedAssetType
impl PartialEq for CachedAssetType
Source§fn eq(&self, other: &CachedAssetType) -> bool
fn eq(&self, other: &CachedAssetType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for CachedAssetType
impl Eq for CachedAssetType
impl StructuralPartialEq for CachedAssetType
Auto Trait Implementations§
impl Freeze for CachedAssetType
impl RefUnwindSafe for CachedAssetType
impl Send for CachedAssetType
impl Sync for CachedAssetType
impl Unpin for CachedAssetType
impl UnsafeUnpin for CachedAssetType
impl UnwindSafe for CachedAssetType
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