pub struct AssetHandle { /* private fields */ }Expand description
Generation-stamped handle preventing ABA aliasing after asset eviction or release.
Implementations§
Source§impl AssetHandle
Implements impl #impl_generics #name #ty_generics #where_clause.
impl AssetHandle
Implements impl #impl_generics #name #ty_generics #where_clause.
pub fn get_slot_id(&self) -> u32
pub fn get_mut_slot_id(&mut self) -> &mut u32
pub fn set_slot_id(&mut self, val: u32) -> &mut Self
pub fn get_generation(&self) -> u32
pub fn get_mut_generation(&mut self) -> &mut u32
pub fn set_generation(&mut self, val: u32) -> &mut Self
Trait Implementations§
Source§impl Clone for AssetHandle
impl Clone for AssetHandle
impl Copy for AssetHandle
Source§impl Debug for AssetHandle
impl Debug for AssetHandle
Source§impl Default for AssetHandle
impl Default for AssetHandle
impl Eq for AssetHandle
Source§impl Hash for AssetHandle
impl Hash for AssetHandle
Source§impl Ord for AssetHandle
impl Ord for AssetHandle
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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for AssetHandle
impl PartialEq for AssetHandle
Source§impl PartialOrd for AssetHandle
impl PartialOrd for AssetHandle
impl StructuralPartialEq for AssetHandle
Auto Trait Implementations§
impl Forget for AssetHandle
impl Freeze for AssetHandle
impl Move for AssetHandle
impl RefUnwindSafe for AssetHandle
impl Send for AssetHandle
impl Sync for AssetHandle
impl Unpin for AssetHandle
impl UnsafeUnpin for AssetHandle
impl UnwindSafe for AssetHandle
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